Skip to content

Commit b834bac

Browse files
committed
add flag_values to convert to datatype (bytes in this case)
1 parent 7c6bfaa commit b834bac

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

aodntools/ncwriter/template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def create_variables(self, **kwargs):
298298

299299
# variable attributes to convert to the same type as the variable
300300
# datatype
301-
varattrs_to_convert_to_datatype = ['valid_min', 'valid_max', 'valid_range']
301+
varattrs_to_convert_to_datatype = ['valid_min', 'valid_max', 'valid_range', 'flag_values']
302302

303303
for varname, varattr in self.variables.items():
304304
if not varattr['_dimensions']: # no kwargs in createVariable

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
'numpy>=2.2.4',
66
'netCDF4>=1.7.2',
77
'pandas>=2.2.3',
8-
'xarray>=2023.1.0'
8+
'xarray>=2023.1.0,xarray<=2025.3.1'
99
]
1010

1111
TESTS_REQUIRE = [

0 commit comments

Comments
 (0)