Allowed blank d/d input

parent 3b51dfa5
......@@ -361,13 +361,15 @@ class SimulationParameters:
raise ValueError('varying_dd must be constant or varying.')
elif key == "density":
if (isinstance(value, float)) or \
(isinstance(value, int)):
(isinstance(value, int)) or \
value is None:
return
else:
raise ValueError('density must be type float or int')
elif key == "diameter":
if (isinstance(value, float)) or \
(isinstance(value, int)):
(isinstance(value, int)) or \
value is None:
return
else:
raise ValueError('diameter must be type float or int')
......
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