RadioAstronomySoftwareGroup / pyradiosky

Python objects and interfaces for representing diffuse, extended and compact astrophysical radio sources
https://pyradiosky.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
14 stars 5 forks source link

make_flat_spectrum_eor requires a specific frame #210

Closed danielquinter-brown closed 1 year ago

danielquinter-brown commented 1 year ago

Currently, attempting to run make_flat_spectrum_eor.py as a script fails with ValueError: If initializing with values, all of ['nside', 'frame', 'hpx_inds', 'stokes', 'spectral_type', 'freq_array'] must be set. Received: ['nside', 'hpx_inds', 'stokes', 'spectral_type', 'freq_array'] The script does not set a frame or accept a frame argument to be passed, which SkyModel requires, so an error is thrown when trying to return a SkyModel.

jpober commented 1 year ago

@danielquinter-brown Do you think you can make a PR with your fix for this issue? Happy to sit down and show you how to do it if you're unsure.

bhazelton commented 1 year ago

fixed in #216