From 29e38db1758d522e220a1407079c6bac9ef691d2 Mon Sep 17 00:00:00 2001 From: Mathias Hauser Date: Fri, 22 Oct 2021 23:23:34 +0200 Subject: [PATCH] fix test with pseudonetcdf 3.2 (#5875) --- xarray/tests/data/example.ict | 10 ++++++---- xarray/tests/test_backends.py | 4 +++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/xarray/tests/data/example.ict b/xarray/tests/data/example.ict index 41bbfeb996c..a33e71a9a81 100644 --- a/xarray/tests/data/example.ict +++ b/xarray/tests/data/example.ict @@ -1,13 +1,13 @@ -27, 1001 +29, 1001 Henderson, Barron U.S. EPA Example file with artificial data JUST_A_TEST 1, 1 -2018, 04, 27, 2018, 04, 27 +2018, 04, 27 2018, 04, 27 0 Start_UTC -7 +5 1, 1, 1, 1, 1 -9999, -9999, -9999, -9999, -9999 lat, degrees_north @@ -16,7 +16,9 @@ elev, meters TEST_ppbv, ppbv TESTM_ppbv, ppbv 0 -8 +9 +INDEPENDENT_VARIABLE_DEFINITION: Start_UTC +INDEPENDENT_VARIABLE_UNITS: Start_UTC ULOD_FLAG: -7777 ULOD_VALUE: N/A LLOD_FLAG: -8888 diff --git a/xarray/tests/test_backends.py b/xarray/tests/test_backends.py index 13ce6af316d..fa088423d18 100644 --- a/xarray/tests/test_backends.py +++ b/xarray/tests/test_backends.py @@ -3964,7 +3964,7 @@ def myatts(**attrs): "coords": {}, "attrs": { "fmt": "1001", - "n_header_lines": 27, + "n_header_lines": 29, "PI_NAME": "Henderson, Barron", "ORGANIZATION_NAME": "U.S. EPA", "SOURCE_DESCRIPTION": "Example file with artificial data", @@ -3973,7 +3973,9 @@ def myatts(**attrs): "SDATE": "2018, 04, 27", "WDATE": "2018, 04, 27", "TIME_INTERVAL": "0", + "INDEPENDENT_VARIABLE_DEFINITION": "Start_UTC", "INDEPENDENT_VARIABLE": "Start_UTC", + "INDEPENDENT_VARIABLE_UNITS": "Start_UTC", "ULOD_FLAG": "-7777", "ULOD_VALUE": "N/A", "LLOD_FLAG": "-8888",