Skip to content

Commit

Permalink
fix: removing deprecated np.float (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
FMcil authored May 12, 2023
1 parent 37f246d commit 29ee1e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mofdscribe/featurizers/chemistry/energygrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def read_ascii_grid(filename: Union[str, os.PathLike]) -> pd.DataFrame:
names=["x", "y", "z", "energy", "deriv_x", "deriv_y", "deriv_z"],
na_values="?",
)
df = df.astype(np.float)
df = df.astype(float)
return df


Expand Down
2 changes: 1 addition & 1 deletion tests/featurizers/bu/test_rdkit_adaptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_rdkit_adaptor(molecule_graph, molecule):

features_a = adaptor.featurize(molecule)
assert features_a.shape == (1,)
assert features_a.dtype == np.float
assert features_a.dtype == float

features_b = adaptor.featurize(molecule_graph)
assert all(features_a == features_b)

0 comments on commit 29ee1e0

Please sign in to comment.