← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-dev/yade/trunk] Rev 1872: Fix reading parameters from table (thanks Anton for patience)

 

Line in plot.py also makes some problem:

45    if not plotDataCollector:
plotDataCollector=o.labeledEngine('plotDataCollector') # will raise
RuntimeError if not found

when I start simple YADE simulation, it works just fine.
But when I do yade-multi, I get a very strange result:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "uniaxialCylinderTest.py", line 169, in myAddPlotData
    yade.plot.addData(Eps=Eps_calc,Sigma=Sigma_calc)
  File
"/home/gladk/dem/yade/currentMono/build/lib/yade-currentMono/py/yade/plot.py",
line 72, in addData
    reduceData(numSamples)
  File
"/home/gladk/dem/yade/currentMono/build/lib/yade-currentMono/py/yade/plot.py",
line 45, in reduceData
    if not plotDataCollector:
plotDataCollector=o.labeledEngine('plotDataCollector') # will raise
RuntimeError if not found
NameError: global name 'o' is not defined

How can I fix that?

Thank you
______________________________


Anton Gladkyy


2009/12/9 Anton Gladky <gladky.anton@xxxxxxxxx>

> Sorry, have just done it :)
> ______________________________
>
> Anton Gladkyy
>
>
> 2009/12/9 Václav Šmilauer <eudoxos@xxxxxxxx>
>
> Anton Gladky píše v St 09. 12. 2009 v 09:39 +0100:
>> > I have a problem with this line in utils.py:
>> > 540       o.tags['line']='l!'
>>
>> should be O.tags['line']='l!' (capital O); can you fix that for yourself
>> and commit next time you commit? There might be more omissions like that
>> in the codepaths I didn't happen to test...
>>
>> Cheers, Vaclav
>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
>> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
>> More help   : https://help.launchpad.net/ListHelp
>>
>
>

References