-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No "code_length" when loading ART Datasets #5024
Comments
Hi, and welcome to yt! Thanks for opening your first issue. We have an issue template that helps us to gather relevant information to help diagnosing and fixing the issue. |
HI @AsierLambarri, Thanks for reporting ! |
Yes of course! The ART dataset is the new Agora-ART I CosmoRun Cosmo_v18. It is available on FlatHub under the ART-I section. Each snapshot has four files associated:
You need all of them to load a single snapshot. The Consistent Tree I use for halofinding are also available in those links but i don't think it is necessary to reproduce the error. Cheers |
thank you ! I'll try to give this a go in time for our next scheduled release |
When loading ART Datasets it seems that no ´code_length´ attribute is loaded into the dataset. Instead, the attribute ´length_unit´ is loaded. This collides with some functionalities where the former is required to do unit conversion behind the curtains.
An Example: Im loading an snapshot from Agora-ART v18 dataset and plotting the dark matter alongside with the halos, using ´annotate_sphere´ with the keyword coord_system="data" to do so:
YT throws the following error:
Im guessing ART doesn't store the code units as such but as "unit_{length, mass, etc}". There are workarounds to this, i.e. using axis or plot relative coordinates for the example above. There may be other cases where there is no workaround tho.
Im using python3.10 and yt 4.3.1.
The text was updated successfully, but these errors were encountered: