From 28f8cfcb7c9e202b1b9e52854c6428da241605af Mon Sep 17 00:00:00 2001 From: Scott Staniewicz Date: Wed, 13 Nov 2024 16:28:19 -0500 Subject: [PATCH] add use-evd to config cli --- src/dolphin/workflows/_cli_config.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/dolphin/workflows/_cli_config.py b/src/dolphin/workflows/_cli_config.py index 02984ee9..f8c0722e 100644 --- a/src/dolphin/workflows/_cli_config.py +++ b/src/dolphin/workflows/_cli_config.py @@ -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, @@ -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={ @@ -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",