-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2417 from desihub/findfileCLI
Add desi_find_file
- Loading branch information
Showing
2 changed files
with
77 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env python | ||
|
||
""" | ||
Utility for returning the DESI NERSC location of a specified file | ||
""" | ||
|
||
from desispec.io.meta import findfile, get_findfile_argparser | ||
|
||
if __name__ == "__main__": | ||
parser = get_findfile_argparser() | ||
args = parser.parse_args() | ||
print(findfile(**args.__dict__)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters