Skip to content

Commit

Permalink
Merge pull request #432 from GillesPy2/develop
Browse files Browse the repository at this point in the history
v1.5.4 Release
  • Loading branch information
seanebum authored Aug 27, 2020
2 parents 0f1f192 + 170b2b1 commit eb81be4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gillespy2/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# @website https://github.com/GillesPy2/GillesPy2
# =============================================================================

__version__ = '1.5.3'
__version__ = '1.5.4'
__title__ = 'GillesPy2'
__description__ = 'Python interface for Gillespie-style biochemical simulations'
__url__ = 'https://github.com/GillesPy2/GillesPy2'
Expand Down
1 change: 1 addition & 0 deletions gillespy2/core/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1114,6 +1114,7 @@ def to_model(self, name):
raise InvalidStochMLError(
"Found a customized propensity function, but no expression was given. {}".format(e))
reaction.propensity_function = propfunc
reaction.ode_propensity_function = propfunc
else:
raise InvalidStochMLError(
"Unsupported or no reaction type given for reaction" + name)
Expand Down
7 changes: 5 additions & 2 deletions gillespy2/core/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _plotplotly_iterate(trajectory, show_labels=True, trace_list=None, line_dict

import plotly.graph_objs as go

for i,species in enumerate(trajectory.data):
for i, species in enumerate(trajectory.data):
if species != 'time':

if species not in included_species_list and included_species_list:
Expand All @@ -61,7 +61,8 @@ def _plotplotly_iterate(trajectory, show_labels=True, trace_list=None, line_dict
y=trajectory.data[species],
mode='lines',
name=species,
line = line_dict
line=line_dict,
legendgroup=species
)
)
else:
Expand All @@ -72,6 +73,7 @@ def _plotplotly_iterate(trajectory, show_labels=True, trace_list=None, line_dict
mode='lines',
name=species,
line=line_dict,
legendgroup=species,
showlegend=False
)
)
Expand Down Expand Up @@ -432,6 +434,7 @@ def plotplotly(self, index=None, xaxis_label="Time ", yaxis_label="Species Popul
trace_list = _plotplotly_iterate(trajectory, trace_list=trace_list, included_species_list=
included_species_list)


layout = go.Layout(
showlegend=show_legend,
title=title,
Expand Down

0 comments on commit eb81be4

Please sign in to comment.