Skip to content

Commit 120697a

Browse files
committed
Missed abs
1 parent b17bdee commit 120697a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python_examples/hl_lhc_collisions_python/checks_and_doc/t004_check_output_consistency.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def prepare_line(path, input_type):
165165
diff_rel = 0
166166
else:
167167
if val_ref > 0:
168-
diff_rel = (val_test - val_ref)/val_ref
168+
diff_rel = np.abs(val_test - val_ref)/val_ref)
169169
else:
170170
diff_rel = 100
171171

0 commit comments

Comments
 (0)