stochpy icon indicating copy to clipboard operation
stochpy copied to clipboard

Issues with plotting functions

Open mzavolan opened this issue 6 years ago • 2 comments

Hi

I am trying to run through the StochPy usage Demo from the README.txt file I have downloaded from sourceforge. I am running the commands in a jupyter notebook running python 3.7.3 and I get some errors in the plotting functions smod.PlotWaitingtimesDistributions() smod.PlotPropensitiesTimeSeries()

The errors come in different places but they are of the type ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

I am surprised that this has not come up before. Thanks for suggestions of solutions.

Mihaela

mzavolan avatar Aug 24 '19 12:08 mzavolan

I get the same error running in both python 3.7 and 2.7

smoes-prime avatar Aug 17 '20 13:08 smoes-prime

Thanks for reporting this, I think this is due to changes in the numpy API.

bgoli avatar Sep 09 '20 08:09 bgoli