-
Notifications
You must be signed in to change notification settings - Fork 22
Support the new strict option to fre catalog build #552
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
Merged
Merged
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
e7620d4
Support the new strict option to fre catalog build
7748f53
Updating catalog validate option
cd68078
Adjusting context forward
6a12322
Updating catalog doc page
985f4af
Updating test_fre_catalog
6a7c508
Minor tweak
7e2b03f
builder -> build
a4adbb9
docstring
bc1d166
pin numpy under v2 for now.
ilaflott 450a08a
Merge branch 'numpy.version.pin' into catalog-builder-strict
ilaflott 0d04fb2
loosen test criteria
ilaflott b69dda1
catalogbuilder req
ilaflott File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,19 +1,26 @@ | ||
| .. NEEDS UPDATING #TODO | ||
|
|
||
| For more complete information on the ``catalogbuilder`` tool, please see its offical `documentation <https://noaa-gfdl.github.io/CatalogBuilder/>`_. | ||
| For more complete information on the ``catalogbuilder`` tool, please see its official `documentation <https://noaa-gfdl.github.io/CatalogBuilder/>`_. | ||
|
|
||
| ``builder`` | ||
| ``build`` | ||
| ----------- | ||
|
|
||
| Generate a catalog. | ||
|
|
||
| * Builds json and csv format catalogs from user input directory path | ||
| * Minimal Syntax: ``fre catalog builder -i [input path] -o [output path]`` | ||
| * Minimal Syntax: ``fre catalog build -i [input path] -o [output path]`` | ||
| * Module(s) needed: n/a | ||
| * Example: ``fre catalog builder -i /archive/am5/am5/am5f3b1r0/c96L65_am5f3b1r0_pdclim1850F/gfdl.ncrc5-deploy-prod-openmp/pp -o ~/output --overwrite`` | ||
| * Example: ``fre catalog build -i /archive/am5/am5/am5f3b1r0/c96L65_am5f3b1r0_pdclim1850F/gfdl.ncrc5-deploy-prod-openmp/pp -o ~/output --overwrite`` | ||
|
|
||
|
|
||
| ``validate`` | ||
| ------------ | ||
|
|
||
| Validate the catalog. | ||
| Validate a catalog | ||
|
|
||
| * Runs the comprehensive validator tool (validates vocabulary and ensures catalogs were generated properly) | ||
| * Minimal Syntax: ``fre catalog validate [json_path] --vocab OR | ||
| fre catalog validate [json_path] --proper_generation`` | ||
| * Module(s) needed: n/a | ||
| * Example: ``fre catalog validate ~/example_catalog.json --vocab`` | ||
|
|
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
|
|
||
| '''This test ensures that the catalog builder module can be imported''' | ||
| def test_fre_catalog_import(): | ||
| from fre import catalog | ||
| assert catalog is not None |
This file contains hidden or 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
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this dependency belong to catalogbuilder alone, not fre-cli?