From 8929fb7ba2df490296399c1b0da727bbe1f6999f Mon Sep 17 00:00:00 2001 From: Cambrin KD Date: Fri, 2 Aug 2024 18:45:04 +0100 Subject: [PATCH] Fix handling results array for multiple blocks. _conclude should be the function reshaping and handling the data, not run. --- pmda/parallel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmda/parallel.py b/pmda/parallel.py index 361edc4..69ee1b2 100644 --- a/pmda/parallel.py +++ b/pmda/parallel.py @@ -396,7 +396,7 @@ def run(self, res = [([], [], [], 0, wait_start, 0, 0)] # record conclude time with timeit() as conclude: - self._results = np.asarray([el[0] for el in res]) + self._results = [el[0] for el in res] # save the frame numbers for all blocks self._blocks = _blocks self._conclude()