Skip to content

Commit 5e35e96

Browse files
committed
Python: skip warning if qty is 0
1 parent f225ccf commit 5e35e96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Utilities/Python/fdsplotlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ def _parse_stat_xy_local(m):
846846
len_m = np.size(m) if isinstance(m, np.ndarray) else 0
847847
len_p = np.size(p) if isinstance(p, np.ndarray) else 0
848848
csv_rownum = drange[i] if i < len(drange) else "?"
849-
if len_m != len_p:
849+
if len_m != len_p and qty != "0":
850850
print(f"[dataplot] Length mismatch at CSV row {csv_rownum}: {name} | {qty} | Measured={len_m}, Predicted={len_p}")
851851

852852
print("[dataplot] returning saved_data and drange")

0 commit comments

Comments
 (0)