Skip to content

Commit

Permalink
cli_config.py: add the flag for --n-parallel-unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
scottstanie committed Oct 3, 2023
1 parent 03dfd2b commit d8e2dae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dolphin/workflows/_cli_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def create_config(
no_gpu: bool = False,
ntiles: tuple[int, int] = (1, 1),
downsample_factor: tuple[int, int] = (1, 1),
n_parallel_unwrap: int = 1,
use_icu: bool = False,
single_update: bool = False,
log_file: Optional[Path] = None,
Expand Down Expand Up @@ -70,6 +71,7 @@ def create_config(
unwrap_method=("icu" if use_icu else "snaphu"),
ntiles=ntiles,
downsample_factor=downsample_factor,
n_parallel_jobs=n_parallel_unwrap,
),
worker_settings=dict(
block_shape=block_shape,
Expand Down Expand Up @@ -209,6 +211,12 @@ def get_parser(subparser=None, subcommand_name="run"):
" version."
),
)
unwrap_group.add_argument(
"--n-parallel-unwrap",
type=int,
default=1,
help="Number of interferograms to unwrap in parallel.",
)

# Get Outputs from the command line
out_group = parser.add_argument_group("Output options")
Expand Down

0 comments on commit d8e2dae

Please sign in to comment.