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

Add --use-evd to config cli #492

Merged
merged 1 commit into from
Nov 13, 2024
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: 7 additions & 0 deletions src/dolphin/workflows/_cli_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def create_config(
mask_file: Optional[str] = None,
zero_where_masked: bool = False,
ministack_size: Optional[int] = 15,
use_evd: bool = False,
half_window_size: tuple[int, int] = (11, 5),
shp_method: ShpMethod = ShpMethod.GLRT,
baseline_lag: Optional[int] = None,
Expand Down Expand Up @@ -98,6 +99,7 @@ def create_config(
"ministack_size": ministack_size,
"half_window": {"x": half_window_size[0], "y": half_window_size[1]},
"shp_method": shp_method,
"use_evd": use_evd,
"baseline_lag": baseline_lag,
},
ps_options={
Expand Down Expand Up @@ -221,6 +223,11 @@ def get_parser(subparser=None, subcommand_name="run"):
default=15,
help="Strides/decimation factor (x, y) (in pixels) to use when determining",
)
pl_group.add_argument(
"--use-evd",
action="store_true",
help="Use EVD for phase linking instead of EMI/CPL",
)
# Half window size for the phase linking algorithm
pl_group.add_argument(
"-hw",
Expand Down