← Back to team overview

yade-dev team mailing list archive

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

 

> so angle should be a float number, right?
>
>
angle is float number as long as in other files ('scripts/definitions.py'
etc.) or 'userinput.py' itself angle is not a name of a function (as
probably is accodring to your output). With box it is the same case,
somewhere in your files (or possibly in some "from ... import *" or "from
... import box") must be defined 'angle' and 'box' function.

In Ipython, you can try

box?

it could give you some information

cheers
Jan

-- 
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