From 49c2efdafa8d487f2a9be2903b856d768ff83f6a Mon Sep 17 00:00:00 2001 From: Marcin Rogowski Date: Sun, 21 Apr 2024 14:33:33 +0200 Subject: [PATCH] Advance time once all variables have been read --- pyspod/utils/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyspod/utils/reader.py b/pyspod/utils/reader.py index b2343cd..0138429 100644 --- a/pyspod/utils/reader.py +++ b/pyspod/utils/reader.py @@ -278,7 +278,7 @@ def get_data_for_time(self, ts, te): vals = dvars[var].values input_data[cum_read:cum_read+read_cnt,:,idx] = vals.reshape(vals.shape[0],-1)#.copy() del vals - cum_read = cum_read + read_cnt + cum_read = cum_read + read_cnt cum_t = cum_t + (v[1]-v[0])