← Back to team overview

yade-dev team mailing list archive

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

 


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

Looks like you have a string variable called "file" somewhere. Perhaps
in utils.saveVars/utils.loadVars? Did I put the warning in
https://yade-dem.org/sphinx/user.html#saving-python-variables for
nothing??!


Thanks for suggestion but it is not the problem. "file" doesn't have to be saved since it will be overwritten each time a simulation is loaded. "file" is currently defined in params.table for batch jobs. Even hardcoding it in the script doesnt fix the problem.
Running in interactive yade makes the problem disappear.

Bruno



Follow ups

References