Skip to content

Commit

Permalink
fix deprecated np.object
Browse files Browse the repository at this point in the history
  • Loading branch information
christophmark committed Dec 19, 2022
1 parent 9bdd543 commit 354ef67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bayesloop/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 354ef67

Please sign in to comment.