sys-bio / tellurium

Python Environment for Modeling and Simulating Biological Systems
http://tellurium.analogmachine.org/
Apache License 2.0
106 stars 36 forks source link

Odd looking figures in docs #436

Open hsauro opened 5 years ago

hsauro commented 5 years ago

I noticed that a bunch of figures in the docs have lines across them, eg, what's the reason for that?

image

fbergmann commented 5 years ago

This is caused by the handling of SED-ML repeated tasks in tellurium. What we have here is a repeated task with resetModel=true and three time courses with different values. It seems during implementation the data is just concatenated, so after plotting the last point of the first run, it goes back to the first point of the next time course.

0u812 commented 5 years ago

I used to have a function to fix this called process_trace, but it was causing problems for @matthiaskoenig because it inserted nans in the matrix. Matthias, perhaps you could comment on how this could be solved without breaking your code.