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

Some tutorials hard code paths #102

Open
akremin opened this issue Jun 11, 2024 · 0 comments
Open

Some tutorials hard code paths #102

akremin opened this issue Jun 11, 2024 · 0 comments

Comments

@akremin
Copy link
Member

akremin commented Jun 11, 2024

Some tutorials use hard-coded pathnames that only work at NERSC. It would be ideal if we could use the standard environment variables DESI_ROOT, DESI_SPECTRO_REDUX, SPECPROD, etc. to allow users to set up their own environment on their own system without needing to edit lines of code. This is also relevant for the desidocker work, which gets around this with setting up fake directory trees, but it would be ideal if we didn't need to have such workarounds.

E.g. tutorials/getting_started/intro_to_DESI_EDR_files.ipynb hardcodes the following:

specprod = 'fuji'    # Internal name for the EDR
specprod_dir = '/global/cfs/cdirs/desi/public/edr/spectro/redux/fuji/'

But it could check for environment variables first, and only default to the above if the variables aren't set.

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

1 participant