Batch - error that doesn't appear in non-batch module

Asked by Abimael

Hello everybody.

I have never used the batch module and I am trying to run a simulation in it. When running in normal module, the script works well. However, when I run it in a batch module, the log files created print repeatedly the following message:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'addPlotData' is not defined

I don't know what to do once the script works well when runned alone and the function 'addPlotData' is actually defined.

Many thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Klaus Thoeni
Solved:
Last query:
Last reply:
Revision history for this message
Best Klaus Thoeni (klaus.thoeni) said :
#1

Hi,

this might work for you but it is difficult to guess without the full script. Try to put your definition of addPlotData before the definition of your engines in your python script. If already the case you might have to provide the full script to give us more details.

HTH
Klaus

Revision history for this message
Abimael (bimaste) said :
#2

Hi Klaus,

Thank you very much! This solved my problem.

Kind regards,

Abimael.

Revision history for this message
Abimael (bimaste) said :
#3

Thanks Klaus Thoeni, that solved my question.