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

Refactor for lazy loading #189

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ Example usage
data_as_dict = ws.loadDataFile(filename='path/to/file.h5', format_string='single' )
# to get the raw analog channels in int16:
data_as_dict = ws.loadDataFile(filename='path/to/file.h5', format_string='raw' )

# lazy-loading of subsets of the data is also possible
with ws.PyWaveSurferData('path/to/file.h5', format_string="double") as wavesurfer_file:
sweep_1_subset = wavesurfer_file.get_traces(segment_index=0, start_frame=0, end_frame=500)
sweep_2_subset = wavesurfer_file.get_traces(segment_index=1, start_frame=0, end_frame=500)

Description of the content can be found in the documentation
`here <https://wavesurfer.janelia.org/manual-0.945/index.html#reading-acquired-data>`_.
Expand Down
Loading
Loading