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
_______________________________________________
yt-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/yt-users.python.org/
Member address: [email protected]