Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marvin Error : Cube download DR17 #790

Open
bmamrutha opened this issue Nov 2, 2022 · 2 comments
Open

Marvin Error : Cube download DR17 #790

bmamrutha opened this issue Nov 2, 2022 · 2 comments

Comments

@bmamrutha
Copy link

Describe the bug
MarvinError: mangaid2plateifu was not able to find a plate-ifu for mangaid=1-149541 either local or remotely.

To Reproduce
Steps to reproduce the behaviour:

cube1=marvin.tools.Cube('1-149541')

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser : Chrome (if the issue is related to Marvin Web)
  • Version of Marvin [e.g. 2.0.2]

Additional context

MarvinError Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 cube1=marvin.tools.Cube('1-149541')

File ~\anaconda3\lib\site-packages\marvin\tools\cube.py:67, in Cube.init(self, input, filename, mangaid, plateifu, mode, data, release, drpall, download, nsa_source)
63 self._dispersion_prepixel = None
65 self._bitmasks = None
---> 67 MarvinToolsClass.init(self, input=input, filename=filename, mangaid=mangaid,
68 plateifu=plateifu, mode=mode, data=data, release=release,
69 drpall=drpall, download=download)
71 NSAMixIn.init(self, nsa_source=nsa_source)
73 if self.data_origin == 'file':

File ~\anaconda3\lib\site-packages\marvin\tools\core.py:116, in MarvinToolsClass.init(self, input, filename, mangaid, plateifu, mode, data, release, drpall, download)
113 def init(self, input=None, filename=None, mangaid=None, plateifu=None,
114 mode=None, data=None, release=None, drpall=None, download=None):
--> 116 MMAMixIn.init(self, input=input, filename=filename, mangaid=mangaid,
117 plateifu=plateifu, mode=mode, data=data, release=release,
118 download=download)
120 CacheMixIn.init(self)
122 # drop breadcrumb

File ~\anaconda3\lib\site-packages\marvin\tools\mixins\mma.py:118, in MMAMixIn.init(self, input, filename, mangaid, plateifu, mode, data, release, drpall, download, ignore_db)
114 self._drpall = config._getDrpAllPath(self._drpver) if drpall is None else drpall
116 self._forcedownload = download if download is not None else config.download
--> 118 self._determine_inputs(input)
120 assert self.mode in ['auto', 'local', 'remote']
121 assert self.filename is not None or self.plateifu is not None, 'no inputs set.'

File ~\anaconda3\lib\site-packages\marvin\tools\mixins\mma.py:185, in MMAMixIn._determine_inputs(self, input)
183 elif self.mangaid:
184 assert not self.filename, 'invalid set of inputs.'
--> 185 self.plateifu = mangaid2plateifu(self.mangaid,
186 drpall=self._drpall,
187 drpver=self._drpver)
189 elif self._plate:
190 assert not self.filename, 'invalid set of inputs.'

File ~\anaconda3\lib\site-packages\marvin\utils\general\general.py:421, in mangaid2plateifu(mangaid, mode, drpall, drpver)
418 except:
419 continue
--> 421 raise MarvinError(
422 'mangaid2plateifu was not able to find a plate-ifu for '
423 'mangaid={0} either local or remotely.'.format(mangaid))

@havok2063
Copy link
Collaborator

@bmamrutha I can't reproduce your error. What version of marvin are you using? What data release are you trying to access? Instead of using the manga-id, try the plate-ifu designation.

from marvin.tools import Cube
cube = Cube('8992-9102')
cube
<Marvin Cube (plateifu='8992-9102', mode='remote', data_origin='api')>

cube=Cube('1-149541')
cube
<Marvin Cube (plateifu='8992-9102', mode='remote', data_origin='api')>

@bmamrutha
Copy link
Author

bmamrutha commented Dec 19, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants