Skip to content

Commit

Permalink
fix(psestimation): remove deprecated 'np.string_', which was just an …
Browse files Browse the repository at this point in the history
…alias for 'np.bytes_'
  • Loading branch information
ljgray committed Sep 27, 2024
1 parent f59e10c commit b2fb1f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drift/core/psestimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def generate(self, regen=False):
cr = np.zeros_like(self.fisher)

f = h5py.File(self.psdir + "/fisher.hdf5", "w")
f.attrs["bandtype"] = np.string_(self.bandtype) # HDF5 string issues
f.attrs["bandtype"] = np.bytes_(self.bandtype) # HDF5 string issues

f.create_dataset("fisher", data=self.fisher)
f.create_dataset("bias", data=self.bias)
Expand Down

0 comments on commit b2fb1f7

Please sign in to comment.