Commit 60e278c1 authored by Maxime Rey's avatar Maxime Rey
Browse files

Bugfix: change name of hdf5 data depending on variable chosen for rmin..

parent 4c9bf063
......@@ -3013,7 +3013,7 @@ def o_fraction(genpath, folders, timesteps, r200min=0.3, r200max=2, factor=2, er
file = h5py.File(filename,'w')
for istep, timestep in enumerate(timesteps):
basename = f'fraco_{timestep:05d}_{r200max}'
basename = f'fraco_{timestep:05d}_{r200min}_{r200max}'
try:
oxygen[:,indfold,istep] = file[basename][:]
continue
......
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