Skip to content

Commit

Permalink
added example for hoomd/gsd and gromacs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kay-Robert Dormann committed Oct 18, 2024
1 parent 91a30bf commit 3580a00
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion amep/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,22 @@ def traj(
Shortcuts to load an h5amep file directly:
>>> traj = amep.load.traj("data/traj.h5amep")
>>> traj = amep.load.traj("examples/data/traj.h5amep")
>>> traj = amep.load.traj(
... "data", trajfile="traj.h5amep", mode="h5amep"
... )
>>>
Example for loading GROMACS data:
>>> path = "examples/data/gromacs/"
>>> traj=amep.load.traj(directory=path, mode="gromacs", reload=True)
Example for loading GSD data
>>> path="examples/data/hoomd/"
>>> traj=amep.load.traj(directory=path, mode="gsd", reload=True)
Fix for working with remote files and insufficient access rights:
Save the h5amep file locally while importing/loading the simulation data
Expand Down
Binary file modified examples/data/gromacs/traj.h5amep
Binary file not shown.
Binary file added examples/data/hoomd/traj.h5amep
Binary file not shown.
File renamed without changes.

0 comments on commit 3580a00

Please sign in to comment.