← Back to team overview

yade-dev team mailing list archive

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

 

Short time ago I had a similar problem with friction angle.
For better understanding I will explain my script handling. I prefer to use a MASTER file:

### MASTER.py ###

execfile('userinput.py')
execfile('scripts/definitions.py')
execfile('scripts/set-filenames.py')

execfile('scripts/0-generate.py')
execfile('scripts/1-replace.py')
...

######

### userinput.py ###

... 
friction_coeff			= 10
angle					= atan(friction_coeff)
...

######

so angle should be a float number, right?

but loading a simulation (xyz.yade) via MASTER file and print angle
gave:

print angle
<function angle at 0x2fdfb90>

but:

print atan(friction_coeff)
1.4711276743


I think this is related the the box issue:

print box
<function box at 0x4b2d758>

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


Follow ups

References