Skip to content

Commit

Permalink
make free run mode default
Browse files Browse the repository at this point in the history
  • Loading branch information
t-sasatani committed Nov 1, 2024
1 parent bc77277 commit 728549a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions miniscope_io/cli/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ def _capture_options(fn: Callable) -> Callable:
help="Display metadata in real time. \n"
"**WARNING:** This is still an **EXPERIMENTAL** feature and is **UNSTABLE**.",
)(fn)
fn = click.option("--continuous", is_flag=True, help="Capture continuously until interrupted")(
fn
)
fn = click.option("--timeout", is_flag=True, help="Stop capture if there is no input")(fn)

return fn

Expand All @@ -73,7 +71,7 @@ def capture(
no_display: Optional[bool],
binary_export: Optional[bool],
metadata_display: Optional[bool],
continuous: Optional[bool],
timeout: Optional[bool],
**kwargs: dict,
) -> None:
"""
Expand Down Expand Up @@ -101,7 +99,7 @@ def capture(
binary=binary_output,
show_video=not no_display,
show_metadata=metadata_display,
continuous=continuous,
continuous=not timeout,
)


Expand Down

0 comments on commit 728549a

Please sign in to comment.