From 41531a40f7a6364400d1201371942177630c14ed Mon Sep 17 00:00:00 2001 From: Grant Firl Date: Fri, 31 May 2024 10:06:55 -0400 Subject: [PATCH] change len to shape for numpy array checking --- test/plot_scm_out.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/plot_scm_out.py b/test/plot_scm_out.py index 41b46cfc3..c1796a251 100755 --- a/test/plot_scm_out.py +++ b/test/plot_scm_out.py @@ -84,7 +84,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