mwvgroup / pwv_kpno

GPS modeling of the H20 atmospheric transmission at user customizable sites
https://mwvgroup.github.io/pwv_kpno/
GNU General Public License v3.0
11 stars 5 forks source link

Astropy blackbody function deprecated #49

Open aadya29 opened 1 month ago

aadya29 commented 1 month ago

Describe the bug The pwv_atm.trans_for_pwv() function relies on astropy.modeling.blackbody which has since been deprecated. I tried to install a previous version of astropy (v3.2.3) but the setup tools required for that have been deprecated too.

To Reproduce

  1. Install pwv_kpno on a conda environment (>python 3.11.0)
  2. try to run the pwv_atm.trans_for_pwv(2.3)
  3. Error: ' No module named 'astropy.modeling.blackbody' '
  4. See here for astropy version history for when it was deprecated
  5. Pip install astropy==3.2.3
  6. Error: setup tools has deprecated an old configuration used by the old version of astropy.

Expected behavior Ideally I expected a table showing the atmospheric transmission for a pwv of 2.3mm.

Screenshots Screenshot 2024-09-10 at 6 32 50 PM Screenshot 2024-09-10 at 6 34 09 PM

Desktop (please complete the following information):

gnarayan commented 1 month ago

@djperrefort - gentle nudge - this is the best non-MODTRAN/other model source for PWV transmission, and it'd be a real shame if it was deprecated.

djperrefort commented 1 month ago

@gnarayan Thanks for the nudge. I talked to @wmwv the other day and he graciously agreed to take over maintenance. Perhaps he can update the dependencies and quickly test the new integrations?