Skip to content

Commit

Permalink
replace np.float with float
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusOrsoe committed Sep 22, 2023
1 parent 8c54c77 commit 6f014fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphnet/models/graphs/graph_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _perturb_input(self, node_features: np.ndarray) -> np.ndarray:
perturbed_features = self.rng.normal(
loc=node_features[:, self._perturbation_cols],
scale=np.array(
list(self._perturbation_dict.values()), dtype=np.float
list(self._perturbation_dict.values()), dtype=float
),
)
node_features[:, self._perturbation_cols] = perturbed_features
Expand Down

0 comments on commit 6f014fa

Please sign in to comment.