Skip to content

Commit

Permalink
changed output shape
Browse files Browse the repository at this point in the history
changed initialization
  • Loading branch information
clinton-huynh committed Jul 28, 2023
1 parent 3fe47ad commit d2331d9
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions recOrder/cli/apply_inverse_transfer_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,26 +144,29 @@ def apply_inverse_transfer_function_cli(
output_z_shape = input_dataset.data.shape[2]

output_shape = (
t_shape,
input_dataset.data.shape[0],
len(channel_names),
output_z_shape,
) + input_dataset.data.shape[3:]

# Create output dataset
output_dataset = open_ome_zarr(
output_path, layout="fov", mode="w", channel_names=channel_names
output_path, layout="fov", mode="a", channel_names=channel_names
)
output_array = output_dataset.create_zeros(
name="0",
shape=output_shape,
dtype=np.float32,
chunks=(
1,
1,
1,
if 0 in time_indices:
output_array = output_dataset.create_zeros(
name="0",
shape=output_shape,
dtype=np.float32,
chunks=(
1,
1,
1,
)
+ input_dataset.data.shape[3:], # chunk by YX
)
+ input_dataset.data.shape[3:], # chunk by YX
)
else:
output_array = output_dataset[0]

# Load data
tczyx_uint16_numpy = input_dataset.data.oindex[:, channel_indices]
Expand Down

0 comments on commit d2331d9

Please sign in to comment.