← Back to team overview

yade-dev team mailing list archive

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

 

Oh! You just meant "file" is somehow a reserved name (since it already exist at startup in empty session?). I didn't get that when you spoke about scopes. It solves the problem, thanks!

Bruno



Václav Šmilauer a écrit :
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.
Same problem. You're overwriting the "file" builtin name with your
variable. Use something different.

I sort of expected those problems. The best will be to move all
saveVars/loadVars and -multi variables to a synthesized module, such as
yade.params and such. I will think about that; it will break existing
scripts, though.

V.



_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp



--
_______________
Bruno Chareyre
Associate Professor
ENSE3 - Grenoble INP
Lab. 3SR
BP 53 - 38041, Grenoble cedex 9 - France
Tél : 33 4 56 52 86 21
Fax : 33 4 76 82 70 43
________________




Follow ups

References