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
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.pyindex 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