Skip to content

Commit

Permalink
change len to shape for numpy array checking
Browse files Browse the repository at this point in the history
  • Loading branch information
grantfirl committed May 31, 2024
1 parent 7a695dd commit 4e1ad07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/plot_scm_out.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def plot_results(file_bl, file_rt=None, vars2plt=None):
if file_rt is not None:
x2 = SCM_RT[timeD][:].squeeze()/3600. #seconds - >hours
# If temporal dimensions disagree, con't compute deltas from experiments, turn off difference plots.
if (len(x1) != len(x2)):
if (x1.shape != x2.shape):
plot_diff = False
# end if
# end if
Expand Down

0 comments on commit 4e1ad07

Please sign in to comment.