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

Updating the io.load function docstring. #314

Merged
merged 2 commits into from
Mar 11, 2020
Merged
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
7 changes: 3 additions & 4 deletions strawberryfields/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,9 @@ def load(f):
MeasureFock | (q[0], q[1], q[2])

Args:
f (Union[file, str, pathlib.Path]): File or filename to which
the data is saved. If file is a file-object, then the filename
is unchanged. If file is a string or Path, a .xbb extension will
be appended to the file name if it does not already have one.
f (Union[file, str, pathlib.Path]): File or filename from which
the data is loaded. If file is a string or Path, a value with the
.xbb extension is expected.

Returns:
prog (Program): Strawberry Fields program
Expand Down