Skip to content

Commit 63599a1

Browse files
authored
fix np.generic type issue (#379)
1 parent baaa775 commit 63599a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apax/nodes/selection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def select_atoms(self, atoms_lst: typing.List[ase.Atoms]) -> typing.List[int]:
174174
self._get_distances_plot(distances, last_selected)
175175
self._get_pca_plot(features_train, features_selection, features_remaining)
176176
self._get_selection_plot(atoms_lst, ranking)
177-
return list(ranking)
177+
return [int(x) for x in ranking]
178178

179179
def _get_selection_plot(
180180
self, atoms_lst: typing.List[ase.Atoms], indices: typing.List[int]

0 commit comments

Comments
 (0)