-
Notifications
You must be signed in to change notification settings - Fork 280
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
Unable to load ARTData quickly #5057
Comments
thanks for reporting import yt
yt.load_sample('D9p_500', skip_particles=True) |
So the bug is pretty simple to describe yt/yt/frontends/art/data_structures.py Line 347 in 9e483ce
However, how to fix it is not (to me): yt/yt/frontends/art/data_structures.py Lines 226 to 236 in 9e483ce
(the good news is that ng is the only such parameter that gets skipped with particles)
How should we address this ? I can see two options:
Option 1 seems dangerous to me (given, I don't know what |
For what it's worth, at least with yt/yt/frontends/art/data_structures.py Lines 262 to 264 in 9e483ce
match the values that are read from the particle header: yt/yt/frontends/art/data_structures.py Lines 347 to 348 in 9e483ce
that intermediate import yt
yt.set_log_level('debug')
ds = yt.load_sample('D9p_500')
print(f"n cell from amr header = {ds.ncell}")
print(f"particle header parameters ng={ds.parameters['ng']}, ncell0={ds.parameters['ncell0']}") skipping unrelated logs...
so based on that and the name of |
Bug report
I'm trying to use
skip_particles
when runningyt.load
as I only need the gas data and the loading gets very long. The loading fails, but when I run it without skip_particles I can load just fineCode for reproduction
Version Information
The text was updated successfully, but these errors were encountered: