← Back to team overview

yade-users team mailing list archive

Re: [Question #246936]: using snapshot engine at certain stresses not at iterperiods

 

Question #246936 on Yade changed:
https://answers.launchpad.net/yade/+question/246936

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hi Sina,

just use something like

fileName = 'snap%05d.png'%snaphoter.counter
newFileName = 'stress_%03d'%stress
os.rename(fileName,newFileName)

at the end of the StressChecker.check function

cheers
Jan


2014-04-19 18:11 GMT+02:00 Sina Jafari <question246936@xxxxxxxxxxxxxxxxxxxxx
>:

> Question #246936 on Yade changed:
> https://answers.launchpad.net/yade/+question/246936
>
>     Status: Answered => Open
>
> Sina Jafari is still having a problem:
> Thank you so much Jan it works perfectly for me. Now I have another
> question: I want to put the current stress in the NAME of the output
> file so that when I look at the file name I understand at what stress it
> is taken!
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.