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

check public release is global #67

Closed
johndonor3 opened this issue Dec 9, 2024 · 0 comments · Fixed by #69
Closed

check public release is global #67

johndonor3 opened this issue Dec 9, 2024 · 0 comments · Fixed by #69
Assignees
Labels

Comments

@johndonor3
Copy link

johndonor3 commented Dec 9, 2024

The check_public_release is a global function, and it always uses the release date from the tree as set when Access() is instantiated.

from sdss_access.path.path import check_public_release, Path
from sdss_access import tree

a = Path(release='dr18')
tree
Tree(sas_base_dir=/Users/brian/Work/sdss/sas, config=dr18, release=DR18)

check_public_release('DR15')
True

check_public_release('DR19')
True

a = Path(release='dr19')
tree
Tree(sas_base_dir=/Users/brian/Work/sdss/sas, config=dr19, release=DR19)

a=Path(release='dr19')

check_public_release('DR15')
False

check_public_release('DR19')
False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants