← Back to team overview

yade-dev team mailing list archive

[Bug 1166161] Re: utils.box() vs. box()

 

thanks jan for the hints.
i did not define "angle" or "box" in my scripts.

the problem was in importing pylab, 
ipython gives:

In [1]: box
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-1-19a86833023e> in <module>()
----> 1 box

NameError: name 'box' is not defined

In [2]: angle
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-2-975bff1628dc> in <module>()
----> 1 angle

NameError: name 'angle' is not defined

In [3]: from pylab import *

In [4]: angle
Out[4]: <function numpy.lib.function_base.angle>

In [5]: box
Out[5]: <function matplotlib.pyplot.box>


solved.

-- 
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
https://bugs.launchpad.net/bugs/1166161

Title:
  utils.box() vs. box()

Status in Yet Another Dynamic Engine:
  Invalid

Bug description:
  Hi,

  I removed all utils stuff from my scripts, now I got this error:

  O.bodies.append(box(vec1,vec2,fixed=True,material=WallMat))
  TypeError: box() takes at most 1 argument (4 given)

  Is it a bug?

  ... it is working using utils.box() instead of box()

To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/1166161/+subscriptions


References