galsci / pysm

PySM 3: Sky emission simulations for Cosmic Microwave Background experiments
https://pysm3.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
36 stars 23 forks source link

suggest to update PySM 3 in case file not found #165

Closed zonca closed 1 year ago

zonca commented 1 year ago

See https://github.com/galsci/pysm/pull/164

zonca commented 1 year ago

Now if a template is not found you get the error:

E               urllib.error.URLError: <urlopen error Unable to open any source! Exceptions were {'https://portal.nersc.gov/project/cmb/pysm-data/doesntexist.txt': <HTTPError 404: 'Not Found'>, 'http://www.astropy.org/astropy-data/doesntexist.txt': <HTTPError 404: 'Not Found'>}>

/usr/lib/python3/dist-packages/astropy/utils/data.py:1259: URLError
----------------------------------------------------------------------------------------- Captured log call ------------------------------------------------------------------------------------------
ERROR    pysm3:data.py:54 File not found, please make sure you are using the latest version of PySM 3