yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #27399
Re: [Question #701028]: Triaxial test cylindrical membrane created away from the pack
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.