Skip to content

Bug in ccpp_track_variables.py #692

@grantfirl

Description

@grantfirl

Description

The ccpp_track_variables.py script has not been updated since the ccpp-physics repository changed its organization, so the code that finds all metadata recursively isn't working as intended. The following change should fix the issue:

diff --git a/scripts/ccpp_track_variables.py b/scripts/ccpp_track_variables.py
index 64dfc51..1f77b49 100755
--- a/scripts/ccpp_track_variables.py
+++ b/scripts/ccpp_track_variables.py
@@ -69,7 +69,7 @@ def create_metadata_filename_dict(metapath): with that scheme"""

metadata_dict = {}
- scheme_filenames = glob.glob(os.path.join(metapath, "*.meta"), recursive=True)
+ scheme_filenames = glob.glob(os.path.join(metapath, "**/*.meta"), recursive=True)

Steps to Reproduce

Try to run ccpp_track_variables.py on a recent commit of UWM or CCPP-SCM.

Additional Context

Output

Metadata

Metadata

Assignees

Labels

bugFor issues describing bugs, or PRs fixing bugs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions