Skip to content

Commit 30c75b8

Browse files
Update Readme after FEReader change (#89)
* Update Readme after FEReader change * Update README.md Co-authored-by: Josh Horton <joshua.horton@openforcefield.org> --------- Co-authored-by: Josh Horton <joshua.horton@openforcefield.org>
1 parent a28c735 commit 30c75b8

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎README.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ This package provides a MDAnalysis Reader to start to explore your trajectory da
1414
import MDAnalysis as mda
1515
from openfe_analysis import FEReader
1616

17-
# a "simulation.nc" file contains multiple replicas, so we must choose which of these we load
18-
# provide either a state (following a single lambda state) or replica (following a particular replica) id (typically 0-10)
19-
u = mda.Universe('hybrid_system.pdb', 'simulation.nc', format=FEReader, state_id=0)
17+
# A "simulation.nc" file contains multiple replicas, so we must choose which of these we load.
18+
# Provide an index for the state or replica to extract.
19+
# The `index_method` then determines whether `index` refers to a Hamiltonian ``state`` (following a single lambda state)
20+
# or a ``replica`` (following a particular replica).
21+
u = mda.Universe('hybrid_system.pdb', 'simulation.nc', format=FEReader, index=0, index_method='state')
2022
```
2123

2224
For example to convert your trajectory to a different format for visualisation:

0 commit comments

Comments
 (0)