Skip to content

Commit

Permalink
Fix if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolaCourtier committed Oct 31, 2024
1 parent cdb0c0c commit a89825f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybop/plot/standard_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def __init__(
self.layout = self.go.Layout(**self.layout_options)

# Add traces
if x and y is not None:
if x is not None and y is not None:
self.add_traces(x, y, trace_names)

def __call__(self, show=True):
Expand Down

0 comments on commit a89825f

Please sign in to comment.