Commit eb8733c6 authored by brinn's avatar brinn

Reduce test for rank and dimenstion in primitive readers and writers to only test rank.

parent 10a23f91
......@@ -246,7 +246,7 @@ class HDF5BaseReader
}
}
void checkDimensions(HDF5DataSet dataSet, final long[] dataDimensions, final long[] offset)
void checkRank(HDF5DataSet dataSet, final long[] dataDimensions, final long[] offset) throws HDF5SpaceRankMismatch
{
assert dataSet != null;
assert dataDimensions != null;
......@@ -259,16 +259,6 @@ class HDF5BaseReader
{
throw new HDF5SpaceRankMismatch(dataSet.getDimensions().length, offset.length);
}
final long[] maxDimensions = dataSet.getMaxDimensions();
for (int i = 0; i < maxDimensions.length; ++i)
{
final long max = maxDimensions[i];
if (max >= 0 && offset[i] + dataDimensions[i] > max)
{
throw new ArrayIndexOutOfBoundsException("Dimension " + i + ": " + offset[i]
+ "+" + dataDimensions[i] + " > " + max);
}
}
}
/**
......
......@@ -382,7 +382,7 @@ class HDF5ByteReader implements IHDF5ByteReader
assert dataSet != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, new long[] { blockSize }, new long[] { offset });
baseReader.checkRank(dataSet, new long[] { blockSize }, new long[] { offset });
final ICallableWithCleanUp<byte[]> readCallable = new ICallableWithCleanUp<byte[]>()
{
@Override
......@@ -752,7 +752,7 @@ class HDF5ByteReader implements IHDF5ByteReader
assert offset != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, MDArray.toLong(blockDimensions), offset);
baseReader.checkRank(dataSet, MDArray.toLong(blockDimensions), offset);
final ICallableWithCleanUp<MDByteArray> readCallable = new ICallableWithCleanUp<MDByteArray>()
{
@Override
......
......@@ -436,7 +436,7 @@ class HDF5ByteWriter extends HDF5ByteReader implements IHDF5ByteWriter
assert data != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, new long[] { dataSize }, new long[] { offset });
baseWriter.checkRank(dataSet, new long[] { dataSize }, new long[] { offset });
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......@@ -988,7 +988,7 @@ class HDF5ByteWriter extends HDF5ByteReader implements IHDF5ByteWriter
assert offset != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, MDArray.toLong(data.dimensions()), offset);
baseWriter.checkRank(dataSet, MDArray.toLong(data.dimensions()), offset);
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......
......@@ -382,7 +382,7 @@ class HDF5DoubleReader implements IHDF5DoubleReader
assert dataSet != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, new long[] { blockSize }, new long[] { offset });
baseReader.checkRank(dataSet, new long[] { blockSize }, new long[] { offset });
final ICallableWithCleanUp<double[]> readCallable = new ICallableWithCleanUp<double[]>()
{
@Override
......@@ -752,7 +752,7 @@ class HDF5DoubleReader implements IHDF5DoubleReader
assert offset != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, MDArray.toLong(blockDimensions), offset);
baseReader.checkRank(dataSet, MDArray.toLong(blockDimensions), offset);
final ICallableWithCleanUp<MDDoubleArray> readCallable = new ICallableWithCleanUp<MDDoubleArray>()
{
@Override
......
......@@ -435,7 +435,7 @@ class HDF5DoubleWriter extends HDF5DoubleReader implements IHDF5DoubleWriter
assert data != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, new long[] { dataSize }, new long[] { offset });
baseWriter.checkRank(dataSet, new long[] { dataSize }, new long[] { offset });
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......@@ -987,7 +987,7 @@ class HDF5DoubleWriter extends HDF5DoubleReader implements IHDF5DoubleWriter
assert offset != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, MDArray.toLong(data.dimensions()), offset);
baseWriter.checkRank(dataSet, MDArray.toLong(data.dimensions()), offset);
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......
......@@ -382,7 +382,7 @@ class HDF5FloatReader implements IHDF5FloatReader
assert dataSet != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, new long[] { blockSize }, new long[] { offset });
baseReader.checkRank(dataSet, new long[] { blockSize }, new long[] { offset });
final ICallableWithCleanUp<float[]> readCallable = new ICallableWithCleanUp<float[]>()
{
@Override
......@@ -752,7 +752,7 @@ class HDF5FloatReader implements IHDF5FloatReader
assert offset != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, MDArray.toLong(blockDimensions), offset);
baseReader.checkRank(dataSet, MDArray.toLong(blockDimensions), offset);
final ICallableWithCleanUp<MDFloatArray> readCallable = new ICallableWithCleanUp<MDFloatArray>()
{
@Override
......
......@@ -435,7 +435,7 @@ class HDF5FloatWriter extends HDF5FloatReader implements IHDF5FloatWriter
assert data != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, new long[] { dataSize }, new long[] { offset });
baseWriter.checkRank(dataSet, new long[] { dataSize }, new long[] { offset });
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......@@ -987,7 +987,7 @@ class HDF5FloatWriter extends HDF5FloatReader implements IHDF5FloatWriter
assert offset != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, MDArray.toLong(data.dimensions()), offset);
baseWriter.checkRank(dataSet, MDArray.toLong(data.dimensions()), offset);
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......
......@@ -382,7 +382,7 @@ class HDF5IntReader implements IHDF5IntReader
assert dataSet != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, new long[] { blockSize }, new long[] { offset });
baseReader.checkRank(dataSet, new long[] { blockSize }, new long[] { offset });
final ICallableWithCleanUp<int[]> readCallable = new ICallableWithCleanUp<int[]>()
{
@Override
......@@ -752,7 +752,7 @@ class HDF5IntReader implements IHDF5IntReader
assert offset != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, MDArray.toLong(blockDimensions), offset);
baseReader.checkRank(dataSet, MDArray.toLong(blockDimensions), offset);
final ICallableWithCleanUp<MDIntArray> readCallable = new ICallableWithCleanUp<MDIntArray>()
{
@Override
......
......@@ -436,7 +436,7 @@ class HDF5IntWriter extends HDF5IntReader implements IHDF5IntWriter
assert data != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, new long[] { dataSize }, new long[] { offset });
baseWriter.checkRank(dataSet, new long[] { dataSize }, new long[] { offset });
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......@@ -988,7 +988,7 @@ class HDF5IntWriter extends HDF5IntReader implements IHDF5IntWriter
assert offset != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, MDArray.toLong(data.dimensions()), offset);
baseWriter.checkRank(dataSet, MDArray.toLong(data.dimensions()), offset);
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......
......@@ -382,7 +382,7 @@ class HDF5LongReader implements IHDF5LongReader
assert dataSet != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, new long[] { blockSize }, new long[] { offset });
baseReader.checkRank(dataSet, new long[] { blockSize }, new long[] { offset });
final ICallableWithCleanUp<long[]> readCallable = new ICallableWithCleanUp<long[]>()
{
@Override
......@@ -752,7 +752,7 @@ class HDF5LongReader implements IHDF5LongReader
assert offset != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, MDArray.toLong(blockDimensions), offset);
baseReader.checkRank(dataSet, MDArray.toLong(blockDimensions), offset);
final ICallableWithCleanUp<MDLongArray> readCallable = new ICallableWithCleanUp<MDLongArray>()
{
@Override
......
......@@ -436,7 +436,7 @@ class HDF5LongWriter extends HDF5LongReader implements IHDF5LongWriter
assert data != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, new long[] { dataSize }, new long[] { offset });
baseWriter.checkRank(dataSet, new long[] { dataSize }, new long[] { offset });
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......@@ -988,7 +988,7 @@ class HDF5LongWriter extends HDF5LongReader implements IHDF5LongWriter
assert offset != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, MDArray.toLong(data.dimensions()), offset);
baseWriter.checkRank(dataSet, MDArray.toLong(data.dimensions()), offset);
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......
......@@ -382,7 +382,7 @@ class HDF5ShortReader implements IHDF5ShortReader
assert dataSet != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, new long[] { blockSize }, new long[] { offset });
baseReader.checkRank(dataSet, new long[] { blockSize }, new long[] { offset });
final ICallableWithCleanUp<short[]> readCallable = new ICallableWithCleanUp<short[]>()
{
@Override
......@@ -752,7 +752,7 @@ class HDF5ShortReader implements IHDF5ShortReader
assert offset != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, MDArray.toLong(blockDimensions), offset);
baseReader.checkRank(dataSet, MDArray.toLong(blockDimensions), offset);
final ICallableWithCleanUp<MDShortArray> readCallable = new ICallableWithCleanUp<MDShortArray>()
{
@Override
......
......@@ -436,7 +436,7 @@ class HDF5ShortWriter extends HDF5ShortReader implements IHDF5ShortWriter
assert data != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, new long[] { dataSize }, new long[] { offset });
baseWriter.checkRank(dataSet, new long[] { dataSize }, new long[] { offset });
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......@@ -988,7 +988,7 @@ class HDF5ShortWriter extends HDF5ShortReader implements IHDF5ShortWriter
assert offset != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, MDArray.toLong(data.dimensions()), offset);
baseWriter.checkRank(dataSet, MDArray.toLong(data.dimensions()), offset);
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......
......@@ -382,7 +382,7 @@ class HDF5UnsignedByteReader implements IHDF5ByteReader
assert dataSet != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, new long[] { blockSize }, new long[] { offset });
baseReader.checkRank(dataSet, new long[] { blockSize }, new long[] { offset });
final ICallableWithCleanUp<byte[]> readCallable = new ICallableWithCleanUp<byte[]>()
{
@Override
......@@ -753,7 +753,7 @@ class HDF5UnsignedByteReader implements IHDF5ByteReader
assert offset != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, MDArray.toLong(blockDimensions), offset);
baseReader.checkRank(dataSet, MDArray.toLong(blockDimensions), offset);
final ICallableWithCleanUp<MDByteArray> readCallable = new ICallableWithCleanUp<MDByteArray>()
{
@Override
......
......@@ -435,7 +435,7 @@ class HDF5UnsignedByteWriter extends HDF5UnsignedByteReader implements IHDF5Byte
assert data != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, new long[] { dataSize }, new long[] { offset });
baseWriter.checkRank(dataSet, new long[] { dataSize }, new long[] { offset });
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......@@ -987,7 +987,7 @@ class HDF5UnsignedByteWriter extends HDF5UnsignedByteReader implements IHDF5Byte
assert offset != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, MDArray.toLong(data.dimensions()), offset);
baseWriter.checkRank(dataSet, MDArray.toLong(data.dimensions()), offset);
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......
......@@ -382,7 +382,7 @@ class HDF5UnsignedIntReader implements IHDF5IntReader
assert dataSet != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, new long[] { blockSize }, new long[] { offset });
baseReader.checkRank(dataSet, new long[] { blockSize }, new long[] { offset });
final ICallableWithCleanUp<int[]> readCallable = new ICallableWithCleanUp<int[]>()
{
@Override
......@@ -753,7 +753,7 @@ class HDF5UnsignedIntReader implements IHDF5IntReader
assert offset != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, MDArray.toLong(blockDimensions), offset);
baseReader.checkRank(dataSet, MDArray.toLong(blockDimensions), offset);
final ICallableWithCleanUp<MDIntArray> readCallable = new ICallableWithCleanUp<MDIntArray>()
{
@Override
......
......@@ -435,7 +435,7 @@ class HDF5UnsignedIntWriter extends HDF5UnsignedIntReader implements IHDF5IntWri
assert data != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, new long[] { dataSize }, new long[] { offset });
baseWriter.checkRank(dataSet, new long[] { dataSize }, new long[] { offset });
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......@@ -987,7 +987,7 @@ class HDF5UnsignedIntWriter extends HDF5UnsignedIntReader implements IHDF5IntWri
assert offset != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, MDArray.toLong(data.dimensions()), offset);
baseWriter.checkRank(dataSet, MDArray.toLong(data.dimensions()), offset);
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......
......@@ -382,7 +382,7 @@ class HDF5UnsignedLongReader implements IHDF5LongReader
assert dataSet != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, new long[] { blockSize }, new long[] { offset });
baseReader.checkRank(dataSet, new long[] { blockSize }, new long[] { offset });
final ICallableWithCleanUp<long[]> readCallable = new ICallableWithCleanUp<long[]>()
{
@Override
......@@ -753,7 +753,7 @@ class HDF5UnsignedLongReader implements IHDF5LongReader
assert offset != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, MDArray.toLong(blockDimensions), offset);
baseReader.checkRank(dataSet, MDArray.toLong(blockDimensions), offset);
final ICallableWithCleanUp<MDLongArray> readCallable = new ICallableWithCleanUp<MDLongArray>()
{
@Override
......
......@@ -435,7 +435,7 @@ class HDF5UnsignedLongWriter extends HDF5UnsignedLongReader implements IHDF5Long
assert data != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, new long[] { dataSize }, new long[] { offset });
baseWriter.checkRank(dataSet, new long[] { dataSize }, new long[] { offset });
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......@@ -987,7 +987,7 @@ class HDF5UnsignedLongWriter extends HDF5UnsignedLongReader implements IHDF5Long
assert offset != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, MDArray.toLong(data.dimensions()), offset);
baseWriter.checkRank(dataSet, MDArray.toLong(data.dimensions()), offset);
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......
......@@ -382,7 +382,7 @@ class HDF5UnsignedShortReader implements IHDF5ShortReader
assert dataSet != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, new long[] { blockSize }, new long[] { offset });
baseReader.checkRank(dataSet, new long[] { blockSize }, new long[] { offset });
final ICallableWithCleanUp<short[]> readCallable = new ICallableWithCleanUp<short[]>()
{
@Override
......@@ -753,7 +753,7 @@ class HDF5UnsignedShortReader implements IHDF5ShortReader
assert offset != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, MDArray.toLong(blockDimensions), offset);
baseReader.checkRank(dataSet, MDArray.toLong(blockDimensions), offset);
final ICallableWithCleanUp<MDShortArray> readCallable = new ICallableWithCleanUp<MDShortArray>()
{
@Override
......
......@@ -435,7 +435,7 @@ class HDF5UnsignedShortWriter extends HDF5UnsignedShortReader implements IHDF5Sh
assert data != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, new long[] { dataSize }, new long[] { offset });
baseWriter.checkRank(dataSet, new long[] { dataSize }, new long[] { offset });
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......@@ -987,7 +987,7 @@ class HDF5UnsignedShortWriter extends HDF5UnsignedShortReader implements IHDF5Sh
assert offset != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, MDArray.toLong(data.dimensions()), offset);
baseWriter.checkRank(dataSet, MDArray.toLong(data.dimensions()), offset);
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......
......@@ -3320,7 +3320,7 @@ public class HDF5RoundtripTest
}
}
@Test(expectedExceptions = { ArrayIndexOutOfBoundsException.class })
@Test(expectedExceptions = { HDF5JavaException.class })
public void testMDLongArrayArrayIndexOutOfBounds()
{
assertEquals(0, HDF5Factory.getOpenHDF5FileCount());
......@@ -3334,13 +3334,13 @@ public class HDF5RoundtripTest
try (final HDF5DataSet ds = writer.int64().createMDArrayAndOpen("ds", new int[] { 2, 2, 2 }, HDF5IntStorageFeatures.INT_COMPACT))
{
fillArray(7, dataWritten.getAsFlatArray());
// Will fail with an ArrayIndexOutOfBoundsException as the data are larger than the data set.
// Will fail with an HDF5JavaException as the block number is out of bounds.
writer.int64().writeMDArrayBlock(ds, dataWritten, new long[] { 0, 1, 0 });
}
}
}
@Test(expectedExceptions = { ArrayIndexOutOfBoundsException.class })
@Test(expectedExceptions = { HDF5JavaException.class })
public void testMDLongArrayOnReadArrayIndexOutOfBounds()
{
assertEquals(0, HDF5Factory.getOpenHDF5FileCount());
......@@ -3363,6 +3363,7 @@ public class HDF5RoundtripTest
try (final HDF5DataSet ds = reader.object().openDataSet("ds"))
{
fillArray(7, dataWritten.getAsFlatArray());
// Will fail with an HDF5JavaException as the block number is out of bounds.
reader.int64().readMDArrayBlock(ds, dimensions, new long[] { 0, 1, 0 });
}
......
......@@ -382,7 +382,7 @@ class HDF5__Name__Reader implements IHDF5__Name__Reader
assert dataSet != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, new long[] { blockSize }, new long[] { offset });
baseReader.checkRank(dataSet, new long[] { blockSize }, new long[] { offset });
final ICallableWithCleanUp<__name__[]> readCallable = new ICallableWithCleanUp<__name__[]>()
{
@Override
......@@ -752,7 +752,7 @@ class HDF5__Name__Reader implements IHDF5__Name__Reader
assert offset != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, MDArray.toLong(blockDimensions), offset);
baseReader.checkRank(dataSet, MDArray.toLong(blockDimensions), offset);
final ICallableWithCleanUp<MD__Name__Array> readCallable = new ICallableWithCleanUp<MD__Name__Array>()
{
@Override
......
......@@ -435,7 +435,7 @@ class HDF5__Name__Writer extends HDF5__Name__Reader implements IHDF5__Name__Writ
assert data != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, new long[] { dataSize }, new long[] { offset });
baseWriter.checkRank(dataSet, new long[] { dataSize }, new long[] { offset });
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......@@ -987,7 +987,7 @@ class HDF5__Name__Writer extends HDF5__Name__Reader implements IHDF5__Name__Writ
assert offset != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, MDArray.toLong(data.dimensions()), offset);
baseWriter.checkRank(dataSet, MDArray.toLong(data.dimensions()), offset);
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......
......@@ -382,7 +382,7 @@ class HDF5Unsigned__Name__Reader implements IHDF5__Name__Reader
assert dataSet != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, new long[] { blockSize }, new long[] { offset });
baseReader.checkRank(dataSet, new long[] { blockSize }, new long[] { offset });
final ICallableWithCleanUp<__name__[]> readCallable = new ICallableWithCleanUp<__name__[]>()
{
@Override
......@@ -753,7 +753,7 @@ class HDF5Unsigned__Name__Reader implements IHDF5__Name__Reader
assert offset != null;
baseReader.checkOpen();
baseReader.checkDimensions(dataSet, MDArray.toLong(blockDimensions), offset);
baseReader.checkRank(dataSet, MDArray.toLong(blockDimensions), offset);
final ICallableWithCleanUp<MD__Name__Array> readCallable = new ICallableWithCleanUp<MD__Name__Array>()
{
@Override
......
......@@ -435,7 +435,7 @@ class HDF5Unsigned__Name__Writer extends HDF5Unsigned__Name__Reader implements I
assert data != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, new long[] { dataSize }, new long[] { offset });
baseWriter.checkRank(dataSet, new long[] { dataSize }, new long[] { offset });
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......@@ -987,7 +987,7 @@ class HDF5Unsigned__Name__Writer extends HDF5Unsigned__Name__Reader implements I
assert offset != null;
baseWriter.checkOpen();
baseWriter.checkDimensions(dataSet, MDArray.toLong(data.dimensions()), offset);
baseWriter.checkRank(dataSet, MDArray.toLong(data.dimensions()), offset);
final ICallableWithCleanUp<Void> writeRunnable = new ICallableWithCleanUp<Void>()
{
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment