In [1]:
import openpathsampling as paths
import openpathsampling.storage as st

In [2]:
storage = st.AnalysisStorage('trajectory.nc')

In [4]:
view = st.storage.StorageView(storage, range(10,20))

In [6]:
storage.steps[10]


Out[6]:
<openpathsampling.pathsimulator.MCStep at 0x1163ce650>

In [9]:
next(iter(view.steps))


Out[9]:
<openpathsampling.pathsimulator.MCStep at 0x1163ce650>

In [13]:
assert(list(storage.steps[10:20]) == list(view.steps))


Out[13]:
True