Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix restart trajectory for merge_traj #1111

Merged
merged 3 commits into from
Jan 29, 2023
Merged

Conversation

wankiwi
Copy link
Contributor

@wankiwi wankiwi commented Jan 8, 2023

When turning on the merge_traj function, if the procedure is interrupted in the run_model_devi stage, the old trajectory file will be overwritten after it is rerun. The incomplete trajectory file will cause the following error in the next post_model_devi stage:
.../site-packages/dpdata/lammps/dump.py:176: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray. system['coords'] = np.array(system['coords']) DeepModeling
This PR repaired this question.

Signed-off-by: kiwi <46419582+wankiwi@users.noreply.github.com>
@njzjz njzjz changed the title Update lammps.py fix restart trajectory for merge_traj Jan 8, 2023
@njzjz njzjz requested a review from HuangJiameng January 8, 2023 23:56
@njzjz njzjz changed the base branch from master to devel January 9, 2023 02:22
@njzjz
Copy link
Member

njzjz commented Jan 13, 2023

@HuangJiameng could you review this PR?

njzjz and others added 2 commits January 27, 2023 12:51
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
@wankiwi wankiwi requested a review from HuangJiameng January 29, 2023 06:40
@wanghan-iapcm wanghan-iapcm merged commit 18613d6 into deepmodeling:devel Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants