Skip to content

Commit

Permalink
Put align_options at the end to avoid messing up positional args
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanbb committed Jan 5, 2025
1 parent 1ceea4f commit 61cfe9c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions caiman/base/rois.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,14 +312,14 @@ def register_ROIs(A1,
D=None,
max_thr=0,
use_opt_flow=True,
align_options: Optional[dict] = None,
thresh_cost=.7,
max_dist=10,
enclosed_thr=None,
print_assignment=False,
plot_results=False,
Cn=None,
cmap='viridis'):
cmap='viridis',
align_options: Optional[dict] = None):
"""
Register ROIs across different sessions using an intersection over union
metric and the Hungarian algorithm for optimal matching
Expand Down Expand Up @@ -352,9 +352,6 @@ def register_ROIs(A1,
use_opt_flow: bool
use dense optical flow to align templates
align_options: Optional[dict]
mcorr options to override defaults when align_flag is True and use_opt_flow is False
thresh_cost: scalar
maximum distance considered
Expand All @@ -376,6 +373,9 @@ def register_ROIs(A1,
cmap: string
colormap for background image
align_options: Optional[dict]
mcorr options to override defaults when align_flag is True and use_opt_flow is False
Returns:
matched_ROIs1: list
Expand Down

0 comments on commit 61cfe9c

Please sign in to comment.