Skip to content

Commit

Permalink
Revert minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
frcroth committed Feb 3, 2023
1 parent 0470031 commit 75db8f7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class DatasetArray(relativePath: DatasetPath,
offsetInChunk = computeOffsetInChunk(chunkIndex, offset)
sourceChunkInCOrder: MultiArray = MultiArrayUtils.axisOrderXYZView(sourceChunk,
axisOrder,
header.order != ArrayOrder.C)
flip = header.order != ArrayOrder.C)
_ = MultiArrayUtils.copyRange(offsetInChunk, sourceChunkInCOrder, targetInCOrder)
} yield ()
}
Expand Down Expand Up @@ -119,7 +119,7 @@ class DatasetArray(relativePath: DatasetPath,
private def isZeroOffset(offset: Array[Int]): Boolean =
util.Arrays.equals(offset, new Array[Int](offset.length))

protected def computeOffsetInChunk(chunkIndex: Array[Int], globalOffset: Array[Int]): Array[Int] =
private def computeOffsetInChunk(chunkIndex: Array[Int], globalOffset: Array[Int]): Array[Int] =
chunkIndex.indices.map { dim =>
globalOffset(dim) - (chunkIndex(dim) * axisOrder.permuteIndicesReverse(header.chunkSize)(dim))
}.toArray
Expand Down

0 comments on commit 75db8f7

Please sign in to comment.