diff --git a/generate_decadal_fix.py b/generate_decadal_fix.py old mode 100644 new mode 100755 index f5d0bf83..dd1820f8 --- a/generate_decadal_fix.py +++ b/generate_decadal_fix.py @@ -14,7 +14,9 @@ import argparse import copy import json +import os import re +import sys from datetime import datetime import numpy as np @@ -182,7 +184,8 @@ def main(): dt["dataset_id"] = ds_id - if ds_id in get_ds_ids("./further_info_url-dsets.txt"): + pathname = os.path.dirname(sys.argv[0]) + if ds_id in get_ds_ids(os.path.join(pathname, "further_info_url-dsets.txt")): global_attrs = dt["fixes"][1].get("operands").get("attrs") global_attrs.update( further_info_url="derive: daops.fix_utils.decadal_utils.fix_further_info_url" diff --git a/tests/test_fixes/test_fix_class.py b/tests/test_fixes/test_fix_class.py index 4f1a3d34..f83d9212 100644 --- a/tests/test_fixes/test_fix_class.py +++ b/tests/test_fixes/test_fix_class.py @@ -18,7 +18,6 @@ def test_get_fix_categories(): "GlobalAttrFix", "CheckAddGlobalAttrFix", "VarAttrFix", - "RemoveFillValuesFix", "RemoveCoordAttrFix", ], "var_fixes": ["AddDataVarFix"],