From 354ef673526a4bfddd11c4ad92d646d27582b269 Mon Sep 17 00:00:00 2001 From: Christoph Mark Date: Mon, 19 Dec 2022 19:25:09 +0100 Subject: [PATCH] fix deprecated np.object --- bayesloop/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bayesloop/core.py b/bayesloop/core.py index dd7b7db..b6c69bb 100644 --- a/bayesloop/core.py +++ b/bayesloop/core.py @@ -371,7 +371,7 @@ def fit(self, forwardOnly=False, evidenceOnly=False, silent=False): likelihood = self.observationModel.processedPdf(self.grid, self.formattedData[i]) # force dtype float on likelihood (in case it is of dtype object) - if likelihood.dtype == np.object: + if likelihood.dtype == object: likelihood = likelihood.astype(float) # update alpha based on likelihood @@ -451,7 +451,7 @@ def fit(self, forwardOnly=False, evidenceOnly=False, silent=False): likelihood = self.observationModel.processedPdf(self.grid, self.formattedData[i]) # force dtype float on likelihood (in case it is of dtype object) - if likelihood.dtype == np.object: + if likelihood.dtype == object: likelihood = likelihood.astype(float) # compute local evidence