From f27397d819a708971a8e3ead65a2a3d1cc57b9e5 Mon Sep 17 00:00:00 2001 From: ctena Date: Wed, 20 Mar 2024 11:19:04 +0100 Subject: [PATCH] sum_axis: fixed issue where level was a list instead a numpy array --- nes/nc_projections/default_nes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nes/nc_projections/default_nes.py b/nes/nc_projections/default_nes.py index f81b8fe..5c2fcd0 100644 --- a/nes/nc_projections/default_nes.py +++ b/nes/nc_projections/default_nes.py @@ -1205,8 +1205,8 @@ class Nes(object): self.time = [self.time[0]] self._time = [self._time[0]] if axis == 'Z': - self.lev['data'] = [self.lev['data'][0]] - self._lev['data'] = [self._lev['data'][0]] + self.lev['data'] = np.array([self.lev['data'][0]]) + self._lev['data'] = np.array([self._lev['data'][0]]) return None -- GitLab