Skip to content

Commit

Permalink
use copy for condition dataframe
Browse files Browse the repository at this point in the history
  • Loading branch information
m-philipps committed Aug 21, 2024
1 parent 8325b53 commit 5be0e44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion petab/v1/visualize/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ def __init__(
self.data_to_plot = data_to_plot
self.data_to_plot.sort_index(inplace=True)

self.conditions = conditions_
try:
self.conditions = conditions_.copy()
except AttributeError:
self.conditions = conditions_
self.inf_point = (
np.inf in self.conditions if self.conditions is not None else False
)
Expand Down

0 comments on commit 5be0e44

Please sign in to comment.