Skip to content

Commit

Permalink
np.save hangs
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Oct 13, 2023
1 parent 61b2276 commit b5a2d96
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,4 @@ def setup(app):

# jupyterlite
jupyterlite_contents = "./nb"
jupyterlite_bind_ipynb_suffix = False
20 changes: 15 additions & 5 deletions docs/nb/try_dpdata.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"metadata": {},
"outputs": [],
"source": [
"system.to_deepmd_npy(\"deepmd\")"
"system[\"energies\"]"
]
},
{
Expand All @@ -40,17 +40,27 @@
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"\n",
"os.listdir(\"deepmd\")"
"system[\"forces\"]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
"source": [
"system.to(\"lammps/lmp\", \"conf.lmp\", frame_idx=0)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"with open(\"conf.lmp\") as f:\n",
" print(f.read())"
]
}
],
"metadata": {
Expand Down

0 comments on commit b5a2d96

Please sign in to comment.