Skip to content

Commit 230cde6

Browse files
authored
Merge pull request #182 from aodn/7287-flag_values-convert-to-bytes
7287 flag values convert to bytes
2 parents 7c6bfaa + 1487da7 commit 230cde6

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: python-aodntools
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ master, v2 ]
66
pull_request:
7-
branches: [ master ]
7+
branches: [ master, v2 ]
88

99
jobs:
1010
build:

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,<=2025.3.1'
99
]
1010

1111
TESTS_REQUIRE = [

0 commit comments

Comments
 (0)