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

NSA Access through maps.nsa functional on one system but not on another #768

Open
astrosteph opened this issue Feb 23, 2022 · 3 comments
Open

Comments

@astrosteph
Copy link

astrosteph commented Feb 23, 2022

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.

@havok2063
Copy link
Collaborator

@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.

@astrosteph
Copy link
Author

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.

@astrosteph
Copy link
Author

Note that marvin is running in "remote" mode and not accessing local files -- the above clarifies the difference between two different machines.

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