jkrogager / PyNOT

ALFOSC pipeline
MIT License
4 stars 3 forks source link

Calib and Std repositories not present in the git clone install of PyNOT v2.1.2 #33

Open sPaMFouR opened 3 days ago

sPaMFouR commented 3 days ago

In the fresh installation of v2.1.2, the calibration and std data files didn't copy/install to Python executable folder of PyNOT, when I cloned the repo from GitHub and installed using "python setup.py install". May be that's a bug that might be worth addressing.

This was after running :

pynot init spex 2024-11-24 --pars night1.yml

Traceback (most recent call last): File "/Users/avinash/Softwares/miniconda3/envs/pynot/bin/pynot", line 33, in sys.exit(load_entry_point('PyNOT-redux==2.1.2', 'console_scripts', 'pynot')()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/avinash/Softwares/miniconda3/envs/pynot/bin/pynot", line 25, in importlib_load_entry_point return next(matches).load() ^^^^^^^^^^^^^^^^^^^^ File "/Users/avinash/Softwares/miniconda3/envs/pynot/lib/python3.11/importlib/metadata/init.py", line 202, in load module = import_module(match.group('module')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/avinash/Softwares/miniconda3/envs/pynot/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1126, in _find_and_load_unlocked File "", line 241, in _call_with_frames_removed File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/Users/avinash/Softwares/miniconda3/envs/pynot/lib/python3.11/site-packages/PyNOT_redux-2.1.2-py3.11.egg/pynot/init.py", line 29, in spec.loader.exec_module(instrument) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/Users/avinash/Softwares/miniconda3/envs/pynot/lib/python3.11/site-packages/PyNOT_redux-2.1.2-py3.11.egg/pynot/alfosc.py", line 65, in filter_table = Table.read(filter_table_fname, format='ascii.fixed_width') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/avinash/Softwares/miniconda3/envs/pynot/lib/python3.11/site-packages/astropy/table/connect.py", line 62, in call out = self.registry.read(cls, *args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/avinash/Softwares/miniconda3/envs/pynot/lib/python3.11/site-packages/astropy/io/registry/core.py", line 221, in read data = reader(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/avinash/Softwares/miniconda3/envs/pynot/lib/python3.11/site-packages/astropy/io/ascii/connect.py", line 19, in io_read return read(filename, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/avinash/Softwares/miniconda3/envs/pynot/lib/python3.11/site-packages/astropy/io/ascii/ui.py", line 487, in read dat = reader.read(table) ^^^^^^^^^^^^^^^^^^ File "/Users/avinash/Softwares/miniconda3/envs/pynot/lib/python3.11/site-packages/astropy/io/ascii/core.py", line 1424, in read self.lines = self.inputter.get_lines(table, newline=newline) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/avinash/Softwares/miniconda3/envs/pynot/lib/python3.11/site-packages/astropy/io/ascii/core.py", line 336, in get_lines with get_readable_fileobj(table, encoding=self.encoding) as fileobj: File "/Users/avinash/Softwares/miniconda3/envs/pynot/lib/python3.11/contextlib.py", line 137, in enter return next(self.gen) ^^^^^^^^^^^^^^ File "/Users/avinash/Softwares/miniconda3/envs/pynot/lib/python3.11/site-packages/astropy/utils/data.py", line 365, in get_readable_fileobj fileobj = io.FileIO(name_or_obj, "r") ^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/Users/avinash/Softwares/miniconda3/envs/pynot/lib/python3.11/site-packages/PyNOT_redux-2.1.2-py3.11.egg/pynot/calib/alfosc_filters.dat'

jkrogager commented 3 days ago

Have you tried installing it using pip install instead?