You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was having issues loading the new Sonora DB models using Sonora2024Grid(). Specifically, it kept returning 'AssertionError: Empty grid; parameter limits out of range'
The issue was resolved by adjusting line 85 in sonora.py.
Thanks for putting this here in Github! The issue's a pretty easy one, thankfully. Looks like the directory structure of the Diamondback models changed between the beta version and the public release. When I added Diamondback support, it was consistent with the beta directory structure. You made the right fix here, when I can I'll go in, update the code to reflect the new path, and close when completed.
I was having issues loading the new Sonora DB models using Sonora2024Grid(). Specifically, it kept returning 'AssertionError: Empty grid; parameter limits out of range'
The issue was resolved by adjusting line 85 in sonora.py.
OLD: fn = f"{base_path}diamondback_beta_spectra_m{Z_string}/t{teff}g{logg_par_dict[logg]}{fsed_string}_m{Z_string}_co1.0_std.spec"
NEW: fn = f"{base_path}t{teff}g{logg_par_dict[logg]}{fsed_string}_m{Z_string}_co1.0.spec"
Using this, I was able to load the full grid as I needed.
The text was updated successfully, but these errors were encountered: