From 693c3dfe05587b283f15e0443b34206e1037be1a Mon Sep 17 00:00:00 2001 From: Congjian Wang Date: Thu, 12 Sep 2024 15:49:31 -0600 Subject: [PATCH] fix numpy issue with dtype --- src/PostProcessors/DataLabeling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PostProcessors/DataLabeling.py b/src/PostProcessors/DataLabeling.py index 7f1b00c..6a3520b 100644 --- a/src/PostProcessors/DataLabeling.py +++ b/src/PostProcessors/DataLabeling.py @@ -190,6 +190,6 @@ def run(self, inputIn): dimsDict[self.label] = dims break outputDict[self.label].append(np.asarray([label]*historySize)) - outputDict[self.label] = np.asarray(outputDict[self.label]) + outputDict[self.label] = np.asarray(outputDict[self.label], dtype=object) outputDict = {'data': outputDict, 'dims':targetDict['dims']} return outputDict