Skip to content

Commit

Permalink
mute auto-figure generation during kinetic reaction testing
Browse files Browse the repository at this point in the history
  • Loading branch information
yalinli2 committed Oct 14, 2023
1 parent b920d75 commit b49b8a5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions qsdsan/processes/_kinetic_reaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ class KineticReaction(Rxn):
0.037578/2.7183**(2.2e-5*t)
>>> round(rxn.half_life, 2)
31506.69
>>> # You can also look at the conversion over time
>>> fig = rxn.plot_conversion_over_time()
>>> # You can also look at the conversion over time,
>>> # set `show` to "True" or use fig.show() to see the figure
>>> fig = rxn.plot_conversion_over_time(show=False)
References
----------
Expand Down Expand Up @@ -183,7 +184,8 @@ def plot_conversion_over_time(self, **kwargs):
All keyword arguments will be passed to :func:`sympy.plot`.
'''
ylabel = kwargs.pop('ylabel', 'Conversion')
plot(self._X_t, (self._t_sym, 0, self.t), ylabel=ylabel)
fig = plot(self._X_t, (self._t_sym, 0, self.t), ylabel=ylabel, **kwargs)
return fig

@property
def rate_reactant(self):
Expand Down

0 comments on commit b49b8a5

Please sign in to comment.