Skip to content

Commit

Permalink
Really fix chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
minnerbe committed Oct 10, 2024
1 parent fe9fd48 commit 605b4b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ private void storeData(final Img<DoubleType> data, final Bounds stackBounds) {
// transpose data because images are F-order and python expects C-order
final RandomAccessibleInterval<DoubleType> transposedData = Views.permute(data, 0, 2);
final String dataset = Paths.get(parameters.renderWeb.project, parameters.stack).toString();
final int[] chunkSize = new int[] {parameters.nCellsX(), parameters.nCellsY(), Math.min(1000, (int) data.dimension(2))};
final int[] chunkSize = new int[] {Math.min(1000, (int) data.dimension(2)), parameters.nCellsY(), parameters.nCellsX()};

final double[] min = new double[3];
min[0] = stackBounds.getMinX();
Expand Down

0 comments on commit 605b4b4

Please sign in to comment.