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

    Status: Open => Answered

Jan Stránský proposed the following answer:
yes, OS is operating system. Linux is too general, what is meant is
distribution (Debian, Ubuntu) and version (e.g. Ubuntu 18.04)

> File "/usr/lib/x86_64-linux-gnu/yade/py/yade/plot.py", line 664 in saveDataTxt
> File "1batch.py", line 37 in checkUnbalanced

as the error says, the problem is on line 37, something about
plot.saveDataTxt

> plot.saveDataTxt(O.tags['d.id']+'.data.bz2')

This worked for me:
###
...
def checkUnbalanced():
 if unbalancedForce()<.05:
  O.pause()
...
O.run()
waitIfBatch()
plot.saveDataTxt(O.tags['d.id']+'.data.bz2')
###

The problem is O.pause with O.wait (or waitIfBatch).
When O.pause() is called, the waiting is released. The only other (probably 
very quick) Python command is O.saveTmp().
This very quick command is executed and the script finishes, no matter that 
saving is in progress (it is called from C++ in another thread).

In the modified version, after waiting there are still Python commands
(plot.saveDataTxt) to be processed and the script finishes after it is
executed.

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to