sdss / marvin

Data access and visualization for MaNGA. http://sdss-marvin.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
54 stars 32 forks source link

BrainError for accessing data in remote mode #809

Open riya1997r opened 3 weeks ago

riya1997r commented 3 weeks ago

target_cube = "10510-12704" my_cube = marvin.tools.Cube(target_cube)

BrainError Traceback (most recent call last) /var/folders/vv/b6943gtn77q8yzt_knd92ry40000gn/T/ipykernel_1113/1586401030.py in ----> 1 my_cube = marvin.tools.Cube(target_cube)

~/opt/anaconda3/lib/python3.9/site-packages/marvin/tools/cube.py in init(self, input, filename, mangaid, plateifu, mode, data, release, drpall, download, nsa_source) 76 self._load_cube_from_db(data=self.data) 77 elif self.data_origin == 'api': ---> 78 self._load_cube_from_api() 79 80 self._init_attributes(self)

~/opt/anaconda3/lib/python3.9/site-packages/marvin/tools/cube.py in _load_cube_from_api(self) 235 """Calls the API and retrieves the necessary information to instantiate the cube.""" 236 --> 237 url = marvin.config.urlmap['api']['getCube']['url'] 238 239 try:

~/opt/anaconda3/lib/python3.9/site-packages/brain/core/core.py in missing(self, key) 35 36 if len(self.keys()) == 0: ---> 37 raise BrainError('No URL Map found. Cannot make remote call') 38 else: 39 raise BrainError('Key {0} not found in urlmap.'.format(key))

BrainError: No URL Map found. Cannot make remote call

havok2063 commented 2 weeks ago

Hi @riya1997r can you try the instructions recommended in https://github.com/sdss/marvin/issues/810 and see if that fixes your problem.