April 29, 2024
3:40 p.m.
Hi Matthew, Thank you for getting back to me so quickly. For me, ds.file_count returns 1 and this is the case if the corresponding halo catalog contains 0 halos or more halos. I also tried ds.particle_type_count. For a halo catalog with 20 halos, ds.particle_type_count returns {'halos', 20}. But for a halo catalog with no halos, I encounter the same error I had before with all_data(). Would you be aware of any other methods that could determine if a halo catalog contains zero halos? Thank you again. Kind regards, Hannah