← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-dev/yade/trunk] Rev 2314: making TriaxialStressController more python friendly.

 

2010/7/5 Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>

> Cpp recorders are still quite usefull for me. They are more robust,
> especially when runing jobs on the server and when simulations are saved and
> reloaded (I'm still strugling with reloading periodic triax atm, no success
> yet, I get funny errors like below). Also, some recorders could compute
> rather complex stuff before recording it, in that case we want cpp for
> speed. So, I don't think they should disappear.
>
> Bruno
>
> Traceback (most recent call last):
>  File "<string>", line 1, in <module>
>  File "/home/bruno/YADE/lib/yade-true-true/py/yade/plot.py", line 154, in
> saveGnuplot
>   fPlot=file(baseName+".gnuplot",'w')
> TypeError: 'str' object is not callable
>
> I had this problem recently. The solution was in adding str(). I mean:

      fPlot=file(str(baseName)+".gnuplot",'w')

Or something like that.

About cpp-recorders. I think, we can not delete them as we can loose
productivity.

Follow ups

References