Skip to content

Commit 5a97a7b

Browse files
committed
Fix function to not split time points by default
1 parent 26f64c9 commit 5a97a7b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/imcflibs/imagej/bdv.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,12 @@ def define_dataset_auto(
846846
hdf5_chunk_sizes = "hdf5_chunk_sizes=" + hdf5_chunk_sizes + " "
847847
else:
848848
hdf5_chunk_sizes = ""
849+
if timepoints_per_partition > 0:
850+
split_timepoints = "split_hdf5 timepoints_per_partition=" + str(
851+
timepoints_per_partition
852+
)
853+
else:
854+
split_timepoints = ""
849855

850856
if bf_series_type == "Angles":
851857
angle_rotation = "apply_angle_rotation "
@@ -883,9 +889,7 @@ def define_dataset_auto(
883889
+ angle_rotation
884890
+ subsampling_factors
885891
+ hdf5_chunk_sizes
886-
+ "split_hdf5 "
887-
+ "timepoints_per_partition="
888-
+ str(timepoints_per_partition)
892+
+ split_timepoints
889893
+ " "
890894
+ "setups_per_partition=0 "
891895
+ "use_deflate_compression "

0 commit comments

Comments
 (0)