Skip to content

Add stream-based loading to Python bindings#46

Open
samusangio wants to merge 2 commits intosandialabs:masterfrom
samusangio:loadfile_binding
Open

Add stream-based loading to Python bindings#46
samusangio wants to merge 2 commits intosandialabs:masterfrom
samusangio:loadfile_binding

Conversation

@samusangio
Copy link

Add stream-based file loading to the Python bindings so callers can parse spectra without writing to disk.

with open("spectrum_file.n42", "rb") as f:
    spec.loadFileFromStream(f, "spectrum_file.n42")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant