You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, this call fails when the objects in the list are Atoms.
bash-4.4$ cat t
import numpy as np
from ase.atoms import Atoms
l = [Atoms('H2'), Atoms('He2')]
np.random.choice(l, 1)
bash-4.4$ python3 t
Traceback (most recent call last):
File "/home/cluster2/bernstei/src/work/NiOxHy/fit_iterative_stage_010/_expyre/run_070_MACE_fit_NiOxHy_MACE_fit_lPgYyu05kGnYajeJu5wzBxuJV1094EXFnTzKyVYkb4Y=_pnjs9mxr/run_020_MD_sample/070_MACE_fit/t", line 5, in <module>
np.random.choice(l, 1)
File "numpy/random/mtrand.pyx", line 946, in numpy.random.mtrand.RandomState.choice
ValueError: a must be 1-dimensional
mace/mace/cli/fine_tuning_select.py
Line 243 in f1be21e
np.random.choice
defaults toreplace=True
. Do we really want that for this selection call (and the nearby ones)?The text was updated successfully, but these errors were encountered: