Skip to content

Commit

Permalink
Add docstrings to acquire.pyi (#198)
Browse files Browse the repository at this point in the history
This allows the documentation to be automatically added to the web pages
at https://acquire-project.github.io/acquire-docs/api_reference/

These docstrings were initially added to the documentation manually by
@dgmccart . I reworded some to avoid duplication and organize it but
otherwise it is the same content.

---------

Co-authored-by: dgmccart <[email protected]>
Co-authored-by: Alan Liddell <[email protected]>
  • Loading branch information
3 people authored Jul 25, 2024
1 parent ee53640 commit 40d84e8
Show file tree
Hide file tree
Showing 2 changed files with 1,091 additions and 134 deletions.
2 changes: 2 additions & 0 deletions python/acquire/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def setup(
storage: Union[str, List[str]] = "Tiff",
output_filename: Optional[str] = "out.tif",
) -> Properties:
"""Set up the runtime with a camera and storage device."""

def normalize_fallback_arg(arg: Union[str, List[str]]) -> List[str]:
if isinstance(arg, str):
return [arg]
Expand Down
Loading

0 comments on commit 40d84e8

Please sign in to comment.