Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Eleanor Smith committed Jan 10, 2022
1 parent bcc1747 commit 7ddfeec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion generate_decadal_fix.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
import argparse
import copy
import json
import os
import re
import sys
from datetime import datetime

import numpy as np
Expand Down Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion tests/test_fixes/test_fix_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def test_get_fix_categories():
"GlobalAttrFix",
"CheckAddGlobalAttrFix",
"VarAttrFix",
"RemoveFillValuesFix",
"RemoveCoordAttrFix",
],
"var_fixes": ["AddDataVarFix"],
Expand Down

0 comments on commit 7ddfeec

Please sign in to comment.