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 desi_find_file #2417

Merged
merged 2 commits into from
Nov 22, 2024
Merged

Add desi_find_file #2417

merged 2 commits into from
Nov 22, 2024

Conversation

akremin
Copy link
Member

@akremin akremin commented Nov 22, 2024

This creates a simple wrapper around desispec.io.meta.findfile so that it can be called from the command line.

@akremin akremin requested a review from sbailey November 22, 2024 22:05
@akremin
Copy link
Member Author

akremin commented Nov 22, 2024

Examples:

> desi_find_file "exposure_table" -n 20240411
/global/cfs/cdirs/desi/spectro/redux/kremin/exposure_tables/202404/exposure_table_20240411.csv
> desi_find_file "processing_table" -n 20240411
/global/cfs/cdirs/desi/spectro/redux/kremin/processing_tables/processing_table_kremin-20240411.csv
> desi_find_file "preproc" -n 20240411 -e 234456 -c b9
/global/cfs/cdirs/desi/spectro/redux/kremin/preproc/20240411/00234456/preproc-b9-00234456.fits.gz

@coveralls
Copy link

Coverage Status

coverage: 30.161% (+0.001%) from 30.16%
when pulling e95d905 on findfileCLI
into 1f75589 on main.

@sbailey
Copy link
Contributor

sbailey commented Nov 22, 2024

Looks good, thanks. The failing doctest is from an issue that has already been fixed in main. OK to merge when tests finish without fixing that in this branch.

@akremin akremin merged commit 08d4acd into main Nov 22, 2024
25 of 26 checks passed
@akremin akremin deleted the findfileCLI branch November 22, 2024 22:21
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.

3 participants