Skip to content

Commit

Permalink
Use monkeypatch for numpy's float deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethCabournDavies committed Aug 5, 2024
1 parent 9084d59 commit 89e6d7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pycbc/inference/sampler/emcee_pt.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
from pycbc.inference.io import EmceePTFile
from .. import models

# This is a hack that will allow us to continue using emcee's abandoned
# PTSampler, which relied on `numpy.float`, until the end of time.
numpy.float = float

if emcee.__version__ >= '3.0.0':
raise ImportError
Expand Down

0 comments on commit 89e6d7d

Please sign in to comment.