dpdata
dpdata copied to clipboard
Not all energy calculated in energy.raw during 02.fp step
Summary
Sometimes, energy.raw file at iteration.0000x/02.fp/ doesn't have all the task's energy. For example, when implementing 02.fp step with 30 tasks, other files such as coord.raw, box.raw have all 30 task's data. However, energy.raw sometimes has less than 30, which abrupt the process. From the raw code, I think I found the way that dpgen reads the energy data. After the first principle calculation of a task is finished, DPGEN searches for a specific key word (a specific sentence that has energy value in it) and save the energy data. However, I found out that some of my first principle calculation ended without such specific key word (sentence), so that the DPGEN could not find the task's energy value. Repeating the job several times, it rarely successfully calculated all the tasks so that it proceeds the iteration. I wonder why this happen, really appreciate your help. Thank you.
DPGEN Version and Platform 14 DeepModeling 15 ------------ 16 Version: 0.10.6 17 Date: Nov-01-2022 18 Path: /home/Software/python-3.8.3/lib/python3.8/site-packages/dpgen 19 20 Dependency 21 ------------ 22 numpy 1.23.3 /home/Software/python-3.8.3/lib/python3.8/site-packages/numpy 23 dpdata 0.2.10 /home/Software/python-3.8.3/lib/python3.8/site-packages/dpdata 24 pymatgen 2019.6.5 /home/Software/python-3.8.3/lib/python3.8/site-packages/pymatgen 25 monty 2022.9.9 /home/Software/python-3.8.3/lib/python3.8/site-packages/monty 26 ase 3.22.1 /home/Software/python-3.8.3/lib/python3.8/site-packages/ase 27 paramiko 2.11.0 /home/Software/python-3.8.3/lib/python3.8/site-packages/paramiko 28 custodian 2022.5.26 /home/Software/python-3.8.3/lib/python3.8/site-packages/custodian
error
127 Traceback (most recent call last):
128 File "/home/Software/python-3.8.3/lib/python3.8/site-packages/numpy/lib/npyio.py", line 1565, in savetxt
129 v = format % tuple(row) + newline
130 TypeError: must be real number, not NoneType
131
132 The above exception was the direct cause of the following exception:
133
134 Traceback (most recent call last):
135 File "/home/Software/python-3.8.3/bin/dpgen", line 8, in
Could you please check the configuration of the failed task? and repeat manually the fp calculation to check what happened.
I transfer the issue to dpdata. It looks to me that there is at least a bug in dpdata. When the energy is not found, there should be an error, or dpdata should ignore the frame. None
should not be appended, and I remember NumPy has disallowed such usage.