Skip to content

Commit

Permalink
update reference files, use HAMTIDE
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Aug 2, 2021
1 parent 2804ac5 commit a795c8e
Show file tree
Hide file tree
Showing 38 changed files with 6,077 additions and 86,777 deletions.
11 changes: 7 additions & 4 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,13 @@ def check_reference_directory(
for file_mask, line_indices in skip_lines.items():
if file_mask in str(test_filename) or re.match(
file_mask, str(test_filename)
):
lines_to_skip.update(
line_index % len(test_lines) for line_index in line_indices
)
) and len(test_lines) > 0:
try:
lines_to_skip.update(
line_index % len(test_lines) for line_index in line_indices
)
except ZeroDivisionError:
continue

for line_index in sorted(lines_to_skip, reverse=True):
del test_lines[line_index], reference_lines[line_index]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"tidal_source": "TPXO",
"tidal_source": "HAMTIDE",
"constituents": [
"Q1",
"O1",
Expand All @@ -8,14 +8,7 @@
"N2",
"M2",
"S2",
"K2",
"Mm",
"Mf",
"M4",
"MN4",
"MS4",
"2N2",
"S1"
"K2"
],
"resource": "../../../input/h_tpxo9.v1.nc"
"resource": null
}
Loading

0 comments on commit a795c8e

Please sign in to comment.