Skip to content

Commit

Permalink
add back t_idx param
Browse files Browse the repository at this point in the history
  • Loading branch information
ieivanov committed Jul 2, 2024
1 parent 79372d3 commit 47a43f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mantis/cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ def apply_transform_to_zyx_and_save_v2(
output_channel_indices = [int(x) for x in output_channel_indices if x.isdigit()]
click.echo(f"input_channel_indices: {input_channel_indices}")

# Check if t_idx should be added to kwargs to have different transformations for different timepoints
all_func_params = inspect.signature(func).parameters.keys()
if "t_idx" in all_func_params:
kwargs["t_idx"] = t_idx

# Process CZYX vs ZYX
if input_channel_indices is not None:
click.echo(f"Processing t={t_idx}")
Expand Down

0 comments on commit 47a43f1

Please sign in to comment.