Skip to content

Commit 201bc08

Browse files
committed
update expected hourly file with correctly averaged values
1 parent 981030d commit 201bc08

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

test_aodntools/timeseries_products/IMOS_ANMN-NRS_STZ_20181213_NRSROT_FV02_hourly-timeseries_END-20190523_C-20220404.nc renamed to test_aodntools/timeseries_products/IMOS_ANMN-NRS_STZ_20181213_NRSROT_FV02_hourly-timeseries_END-20190523_C-20220428.nc

387 KB
Binary file not shown.

test_aodntools/timeseries_products/test_hourly_timeseries.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
]
2222
INPUT_PATHS = [os.path.join(TEST_ROOT, f) for f in INPUT_FILES]
2323
EXPECTED_OUTPUT_FILE = os.path.join(
24-
TEST_ROOT, 'IMOS_ANMN-NRS_STZ_20181213_NRSROT_FV02_hourly-timeseries_END-20190523_C-20220404.nc'
24+
TEST_ROOT, 'IMOS_ANMN-NRS_STZ_20181213_NRSROT_FV02_hourly-timeseries_END-20190523_C-20220428.nc'
2525
)
2626

2727
INST_VARIABLES = {'instrument_id', 'source_file', 'LONGITUDE', 'LATITUDE', 'NOMINAL_DEPTH'}
@@ -89,6 +89,7 @@ def test_hourly_aggregator(self):
8989

9090
# check variable values
9191
expected = Dataset(EXPECTED_OUTPUT_FILE)
92+
self.assertEqual(len(expected['TIME']), len(dataset['TIME']))
9293
compare_vars = ('TIME', 'NOMINAL_DEPTH', 'instrument_index',
9394
'TEMP', 'TEMP_count', 'TEMP_min', 'TEMP_max')
9495
non_match_vars = [var for var in compare_vars

0 commit comments

Comments
 (0)