From 2103179ae6307db52bda95abdbeb21fcc0ac40b5 Mon Sep 17 00:00:00 2001 From: Arin Wongprommoon <arin.wongprommoon@ed.ac.uk> Date: Tue, 6 Dec 2022 11:50:41 +0000 Subject: [PATCH] [WIP] change(postproc): datatypes for mothers & daughters in picker WHY IS THIS CHANGE NEEDED?: - tuple is dangerous because immutable WHAT SIDE EFFECTS DOES THIS CHANGE HAVE?: - yet to see EVIDENCE THAT COMMIT WORKS: - yet to see REFERENCES: - issue #37 --- src/postprocessor/core/reshapers/picker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/postprocessor/core/reshapers/picker.py b/src/postprocessor/core/reshapers/picker.py index 747623ee..03d0fdc3 100644 --- a/src/postprocessor/core/reshapers/picker.py +++ b/src/postprocessor/core/reshapers/picker.py @@ -102,8 +102,8 @@ class picker(LineageProcess): self.daughters = np.array([]) else: self.mothers, self.daughters = ( - tuple(self.cells.mothers_daughters[:, 1]), - tuple(self.cells.mothers_daughters[:, 2]), + list(self.cells.mothers_daughters[:, 1]), + list(self.cells.mothers_daughters[:, 2]), ) for alg, op, *params in self.sequence: if indices: -- GitLab