Skip to content

Commit 15126c3

Browse files
committed
patch to manage raw data(when we want to use low memory) and normal mode
1 parent e3c9ab6 commit 15126c3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/py_eddy_tracker/observations/observation.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,11 @@ def dtype(self):
216216
"""
217217
dtype = list()
218218
for elt in self.elements:
219-
data_type = VAR_DESCR[elt][
220-
"compute_type"
221-
if "compute_type" in VAR_DESCR[elt] and not self.raw_data
222-
else "output_type"
223-
]
219+
data_type = (
220+
VAR_DESCR[elt].get("compute_type", VAR_DESCR[elt].get("nc_type"))
221+
if not self.raw_data
222+
else VAR_DESCR[elt]["output_type"]
223+
)
224224
if elt in self.array_variables:
225225
dtype.append((elt, data_type, (self.track_array_variables,)))
226226
else:

0 commit comments

Comments
 (0)