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

add_dependencies includes envvars #183

Merged
merged 3 commits into from Jan 20, 2022
Merged

add_dependencies includes envvars #183

merged 3 commits into from Jan 20, 2022

Conversation

sbailey
Copy link
Contributor

@sbailey sbailey commented Jan 20, 2022

This PR addresses desihub/desispec#1077 by adding the following environment variables to the suite of dependencies added by desiutil.depend.add_dependencies:

  • DESI_ROOT
  • DESI_SPECTRO_DATA
  • DESI_SPECTRO_REDUX
  • SPECPROD
  • DESI_SPECTRO_CALIB
  • DESI_BASIS_TEMPLATES
  • DESI_TARGET
  • DESIMODEL

this expands the concept of "dependencies" to be not just code versions but also input directories. This list can be overridden with envvar_names option analogous to pre-existing module_names option.

I will make a companion PR on desispec to make sure we call this for every desispec.io.write* function, but this PR doesn't need to wait for that.

@weaverba137 if you have a chance to take a look, please do, but I plan to merge later today when I get to the point of needing this for testing.

Copy link
Member

@weaverba137 weaverba137 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problems with this except for a minor suggestion for the change log.

doc/changes.rst Outdated Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

None yet

2 participants