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

    Status: Open => Answered

Jan Stránský proposed the following answer:
> Why does this happen?
> ValueError: max() arg is an empty sequence

this means, that the argument of max function is empty. Try in Python: max([]).
max is used in this line:
xtremum = max(abs(s) for s in plot.data['s'])
meaning that at the time you call it, plot.data['s'] is empty.
You can have some checking beforehand or try-except construction to prevent the 
error.

Cheers
Jan

-- 
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     : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to