Commit 8267333c authored by Thomas Purcell's avatar Thomas Purcell
Browse files

Check max_rung is None not if it returns false

If max_rung==0 is not None
parent 2834505a
Pipeline #109978 failed with stages
in 60 minutes and 12 seconds
......@@ -140,7 +140,7 @@ def read_csv(
max_rung = inputs.max_rung
else:
inputs_out = Inputs()
if not max_rung:
if max_rung is None:
raise ValueError("Maximum rung for the calculation is not defined.")
# Load csv file
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment