marvin
marvin copied to clipboard
NSA Access through maps.nsa functional on one system but not on another
Hello,
Having updated marvin to the newest version (2.7.2 on both systems -- local and remote cluster), and set release to DR17, if I run the following locally everything works out. However running this on the remote system fails. I am struggling to see what the difference could be? Running:
import marvin from marvin.tools.maps import Maps from marvin import config config.setRelease("DR17") maps = Maps("10001-12704") maps.nsa
Local system: loads NSA data Remote system:
[WARNING]: cannot load NSA information for mangaid='1-55616'. (MarvinUserWarning)
Local system: Python 3.7.4 (default, Aug 13 2019, 20:35:49) [GCC 7.3.0] :: Anaconda, Inc. on linux Marvin: VERSION 2.7.2 FILE /home/sc381/anaconda3/lib/python3.7/site-packages/marvin/init.py
Remote system:
Python 3.8.8 (default, Apr 13 2021, 19:58:26)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Marvin:
VERSION
2.7.2
FILE
/home/sc381/.local/lib/python3.8/site-packages/marvin/init.py
I also note, that this issue WAS present locally until I pip updated marvin, however updating on the other system has not resolved it (even though it appears to have been successful).
I admit I don't know how much this is on your end vs our end, so am also in contact with IT who maintain the remote system.
@astrosteph There are some slight differences when accessing the NSA parameters from a local Maps file object versus a remote Maps object. Locally it accesses them from your local drpall file, which is a subset of the full NSA set. Remotely it accesses the full NSA set from the database. This may be the culprit, but I would need to see a full traceback of any errors and the contents of maps.nsa
to understand what's going on.
Hello! Well over a year since I flagged this and now realise I get the same error on my local machine too? Not sure what has changed. Running exactly the same code now results in the same error message as above for the local system too.
Note that marvin is running in "remote" mode and not accessing local files -- the above clarifies the difference between two different machines.