Question #692420 on Yade changed:
https://answers.launchpad.net/yade/+question/692420

    Status: Open => Needs information

Jan Stránský requested more information:
Hello,

> I was only able to think of two ways

it is actually one way, see below

> but seems like lambda expressions cannot take conditional statements.

it can:
extractVelocity=lambda b: flattener.normal(b,b.state.vel) if -0.15< 
b.state.pos[2] <= 0.15 else None

Please provide a MWE [1], something like a few predefined spheres with
predefined positions and velocities and describe expected result.

cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to