Skip to content

Commit e8f6e58

Browse files
kratsgmatthewfeickert
authored andcommitted
full fix
1 parent 2a99f5d commit e8f6e58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/validate_systs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ def outlier_plot(signal_template, v_max, x_var, y_var, x_label, y_label):
311311
rel_systs[:, jbin] != 0
312312
] # Remove any points with zero relative syst
313313

314-
if len(rel_systs) > 0:
314+
# qhull interpolation needs at least 4 points minimum
315+
if len(rel_systs) >= 4:
315316
z = scipy.interpolate.griddata(
316317
rel_systs[:, :2], rel_systs[:, jbin], (x, y)
317318
)

0 commit comments

Comments
 (0)