-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Progress on catalog version reporting (#295)
* WIP, commit for safekeeping * Elimanate some redundant dependencies * Revert "Elimanate some redundant dependencies" This reverts commit 4b574b3. * Revert "WIP, commit for safekeeping" This reverts commit 1ce9631. * Switch _get_catalog_rp to use Path * Switch current available_versions to use Path, not os.path * Protect against finding a non-directory catalog version * Restrict basic list of available versions to those in the current catalog.yaml * Mark 'default' version in pretty print * Remove debug pdb * Cover missing exception lines with tests * @charles-turner-1 suggestions
- Loading branch information
1 parent
44ad1bf
commit 293d484
Showing
4 changed files
with
98 additions
and
26 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
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,3 @@ | ||
# This is a catalog 'file', not directory, | ||
# to make sure the system doesn't detect such things | ||
# as a real catalog |
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,24 @@ | ||
sources: | ||
access_nri: | ||
args: | ||
columns_with_iterables: | ||
- model | ||
- realm | ||
- frequency | ||
- variable | ||
mode: r | ||
name_column: name | ||
path: /g/data/xp65/public/apps/access-nri-intake-catalog/{{version}}/metacatalog.csv | ||
yaml_column: yaml | ||
description: ACCESS-NRI intake catalog | ||
driver: intake_dataframe_catalog.core.DfFileCatalog | ||
metadata: | ||
storage: gdata/al33+gdata/cj50+gdata/dk92+gdata/fs38+gdata/ik11+gdata/oi10+gdata/p73+gdata/rr3+gdata/xp65 | ||
version: '{{version}}' | ||
parameters: | ||
version: | ||
min: v2019-02-02 | ||
max: v2024-06-19 | ||
default: v2025-02-28 # Check default outside range is returned | ||
description: Catalog version | ||
type: str |
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