-
Notifications
You must be signed in to change notification settings - Fork 28
Description
I hope you can help solve the problem. I use anaconda for the creation of a virtual environment and run train.py in spyder with python 3.11. When I run the train.py, there shows up the error. The dataset used by this code is sn2_reactions.npz, which is got from: https://zenodo.org/record/2605341. Other files and parameters are not verified.
THe error report:
File D:\programs\anaconda3\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
exec(code, globals, locals)
File d:\programs\qml\copies\physnet-master\physnet-master\train.py:122
Eshift=data_provider.EperA_mean,
File D:\programs\qml\copies\PhysNet-master\PhysNet-master\training\DataProvider.py:106 in EperA_mean
self._compute_E_statistics()
File D:\programs\qml\copies\PhysNet-master\PhysNet-master\training\DataProvider.py:95 in _compute_E_statistics
tmp = self.get_data(self.idx_train[i])
File D:\programs\qml\copies\PhysNet-master\PhysNet-master\training\DataProvider.py:196 in get_data
return self.data[idx]
File D:\programs\qml\copies\PhysNet-master\PhysNet-master\training\DataContainer.py:147 in getitem
for k, i in enumerate(idx):
TypeError: 'numpy.int32' object is not iterable
Desktop
OS: [Windows11]
Anaconda version:conda 23.7.3
Python Version: [3.11.4]
Package Version: [tensorflow 2.13.0], [numpy 1.24.3]