Skip to content

Commit e7af97d

Browse files
committed
Override the validation of the ESM1.5 river fields
1 parent a05ac76 commit e7af97d

File tree

2 files changed

+713
-0
lines changed

2 files changed

+713
-0
lines changed

src/remove_timeseries_demo.py

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
import mule
44
import sys
5+
from types import MethodType
6+
# Modified version with the expected latitudes of the river field reversed
7+
import validate_esm15_override
58

69
ff = mule.DumpFile.from_file(sys.argv[1])
710
ff_out = ff.copy()
@@ -18,4 +21,6 @@
1821
else:
1922
print('No timeseries fields found')
2023

24+
ff_out.validate = MethodType(validate_esm15_override.validate_umf, ff_out)
25+
2126
ff_out.to_file(sys.argv[2])

0 commit comments

Comments
 (0)