marvin
marvin copied to clipboard
Marvin cannot find DAPall file in the system
My run of Marvin cannot find the DAPall file in my system. It was able to download all other required files, but it did not do so for the file. The traceback is as follows:
---------------------------------------------------------------------------
MarvinError Traceback (most recent call last)
<ipython-input-175-bee668d5bc53> in <module>
----> 1 gal.maps.dapall
~/.local/lib/python3.5/site-packages/marvin/tools/mixins/dapall.py in dapall(self)
51 if self.data_origin == 'file':
52 try:
---> 53 dapall_data = self._get_dapall_from_file()
54 except IOError:
55 marvin.log.debug('cannot find DAPall file. Trying remote request.')
~/.local/lib/python3.5/site-packages/marvin/tools/mixins/dapall.py in _get_dapall_from_file(self)
74
75 if not os.path.exists(dapall_path):
---> 76 raise MarvinError('cannot find DAPall file in the system.')
77
78 dapall_hdu = astropy.io.fits.open(dapall_path)
MarvinError: cannot find DAPall file in the system.
You can submit this error to Marvin GitHub Issues (https://github.com/sdss/marvin/issues/new).
Fill out a subject and some text describing the error that just occurred.
If able, copy and paste the full traceback information into the issue as well.
I can manually download it for now, but I felt like this was worth mentioning.
Thank you!
Running on Ubuntu on Jupyterhub Server Marvin version 2.3.0
@sjshamsi Are you trying to access the dapall
information from within a cube
or maps
object? Can you provide me the lines of code you are running so I can try to recreate this error?
@havok2063 Sorry for not specifying earlier. This was this was during access from a maps
object.
@sjshamsi Can you provide me the lines of code you are running so I can try to create this error?
@sjshamsi bumping this.
@havok2063 I apologise for the delay, I'd been working with Marvin till the end of my summer research and have time to update of the issue again after setting everyone up on my personal machine.
I have a fresh system with Marvin 2.3.2 installed on it and am running it on collab
mode as well as using MPL-8
on an Ubuntu 19.04 desktop.
I can prompt the error by doing:
from marvin.tools.maps import Maps
maps = Maps('1-284552')
maps.dapall
---------------------------------------------------------------------------
MarvinError Traceback (most recent call last)
<ipython-input-19-fc4ec496f330> in <module>
----> 1 maps.dapall
~/miniconda3/envs/gz3d/lib/python3.7/site-packages/marvin/tools/mixins/dapall.py in dapall(self)
51 if self.data_origin == 'file':
52 try:
---> 53 dapall_data = self._get_dapall_from_file()
54 except IOError:
55 marvin.log.debug('cannot find DAPall file. Trying remote request.')
~/miniconda3/envs/gz3d/lib/python3.7/site-packages/marvin/tools/mixins/dapall.py in _get_dapall_from_file(self)
74
75 if not os.path.exists(dapall_path):
---> 76 raise MarvinError('cannot find DAPall file in the system.')
77
78 dapall_hdu = astropy.io.fits.open(dapall_path)
MarvinError: cannot find DAPall file in the system.
You can submit this error to Marvin GitHub Issues (https://github.com/sdss/marvin/issues/new).
Fill out a subject and some text describing the error that just occurred.
If able, copy and paste the full traceback information into the issue as well.
It is, however, working for the ModelCube
object.
from marvin.tools.modelcube import ModelCube
modelcube = ModelCube('1-284552')
modelcube.dapall
{'adist_nsa_z': 104.731,
'adist_z': 104.731,
'bin_r_n_1': 53.0,
'bin_r_n_2': 69.0,
'bin_r_n_3': 22.0,
...}
@sjshamsi Thanks for this update. This is very helpful info. I'll see if I can recreate the error and do a little sleuthing.