Commit d2c5630c authored by Maxime Rey's avatar Maxime Rey
Browse files

Improvement: force factor to be an integer.

parent 91261f1f
......@@ -1095,6 +1095,8 @@ def get_rad(RamsesDir, timestep, factor):
if factor=='fullbox':
rad_dat = 1.1
center_dat = [0.5,0.5,0.5]
elif not isinstance(factor, int):
raise ValueError("Please chose an integer number for factor or 'fullbox'. Reason: to avoid too many save files and extended names.")
else:
rad_dat *= factor
else:
......
Supports Markdown
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