@@ -148,9 +148,9 @@ default void testAsSources( String resource ) throws URISyntaxException
148148 try (Context context = new Context ())
149149 {
150150 Pyramidal5DImageData < ? > pyramidal5DImageData = load ( resource , context );
151- PyramidalBdvDataset < ? > pyramidalBdvDataset = new PyramidalBdvDataset <>( pyramidal5DImageData );
152- assertNotNull ( pyramidalBdvDataset .asSources () );
153- Source < ? > channel0 = pyramidalBdvDataset .asSources ().get ( 0 ).getSpimSource ();
151+ PyramidalBdv < ? > pyramidalBdv = new PyramidalBdv <>( pyramidal5DImageData );
152+ assertNotNull ( pyramidalBdv .asSources () );
153+ Source < ? > channel0 = pyramidalBdv .asSources ().get ( 0 ).getSpimSource ();
154154 VoxelDimensions voxelDimensions = channel0 .getVoxelDimensions ();
155155 assertEquals ( 2 , channel0 .getNumMipmapLevels () ); // 2 resolution levels
156156 assertInstanceOf ( UnsignedByteType .class , channel0 .getType () );
@@ -163,9 +163,9 @@ default void testAsSources( String resource ) throws URISyntaxException
163163 assertNotNull ( channel0 .getSource ( 1 , 1 ) ); // timepoint 1, resolution level 1
164164 long [] dimensions = channel0 .getSource ( 0 , 0 ).dimensionsAsLongArray ();
165165 assertArrayEquals ( new long [] { 64 , 64 , 16 }, dimensions );
166- assertEquals ( 3 , pyramidalBdvDataset .asSources ().size () ); // 3 channels
167- assertEquals ( "lynEGFP" , pyramidalBdvDataset .asSources ().get ( 0 ).getSpimSource ().getName () );
168- assertEquals ( "NLStdTomato" , pyramidalBdvDataset .asSources ().get ( 1 ).getSpimSource ().getName () );
166+ assertEquals ( 3 , pyramidalBdv .asSources ().size () ); // 3 channels
167+ assertEquals ( "lynEGFP" , pyramidalBdv .asSources ().get ( 0 ).getSpimSource ().getName () );
168+ assertEquals ( "NLStdTomato" , pyramidalBdv .asSources ().get ( 1 ).getSpimSource ().getName () );
169169 assertEquals ( 1 , pyramidal5DImageData .getOmeroProperties ().rdefs .defaultT );
170170 }
171171 if ( resource .contains ( "4d_testing" ) )
@@ -185,9 +185,9 @@ default void testAsSources( String resource ) throws URISyntaxException
185185 if ( resource .contains ( "xyzc" ) || resource .contains ( "xyzt" ) )
186186 assertArrayEquals ( new long [] { 64 , 64 , 16 }, dimensions );
187187 if ( resource .contains ( "xyct" ) || resource .contains ( "xyzc" ) )
188- assertEquals ( 3 , pyramidalBdvDataset .asSources ().size () ); // 3 channels
188+ assertEquals ( 3 , pyramidalBdv .asSources ().size () ); // 3 channels
189189 if ( resource .contains ( "xyzt" ) )
190- assertEquals ( 1 , pyramidalBdvDataset .asSources ().size () ); // 1 channel
190+ assertEquals ( 1 , pyramidalBdv .asSources ().size () ); // 1 channel
191191 }
192192 if ( resource .contains ( "3d_testing" ) )
193193 {
@@ -206,18 +206,18 @@ default void testAsSources( String resource ) throws URISyntaxException
206206 if ( resource .contains ( "xyz" ) )
207207 assertArrayEquals ( new long [] { 64 , 64 , 16 }, dimensions );
208208 if ( resource .contains ( "xyc" ) )
209- assertEquals ( 3 , pyramidalBdvDataset .asSources ().size () ); // 3 channels
209+ assertEquals ( 3 , pyramidalBdv .asSources ().size () ); // 3 channels
210210 if ( resource .contains ( "xyt" ) || resource .contains ( "xyz" ) )
211- assertEquals ( 1 , pyramidalBdvDataset .asSources ().size () ); // 1 channel
211+ assertEquals ( 1 , pyramidalBdv .asSources ().size () ); // 1 channel
212212 }
213213 if ( resource .contains ( "2d_testing" ) )
214214 {
215- assertEquals ( 1 , pyramidalBdvDataset .asSources ().size () ); // 1 channel
215+ assertEquals ( 1 , pyramidalBdv .asSources ().size () ); // 1 channel
216216
217217 long [] dimensions = channel0 .getSource ( 0 , 0 ).dimensionsAsLongArray ();
218218 assertArrayEquals ( new long [] { 64 , 64 , 1 }, dimensions );
219- assertEquals ( 1 , pyramidalBdvDataset .asSources ().size () ); // 1 channel
220- assertEquals ( ZarrTestUtils .IMAGE_NAME , pyramidalBdvDataset .asSources ().get ( 0 ).getSpimSource ().getName () );
219+ assertEquals ( 1 , pyramidalBdv .asSources ().size () ); // 1 channel
220+ assertEquals ( ZarrTestUtils .IMAGE_NAME , pyramidalBdv .asSources ().get ( 0 ).getSpimSource ().getName () );
221221 }
222222 }
223223 }
@@ -306,8 +306,8 @@ default void testNumResolutionLevels( String resource ) throws URISyntaxExceptio
306306 {
307307 Pyramidal5DImageData < ? > pyramidal5DImageData = load ( resource , context );
308308 assertEquals ( 2 , pyramidal5DImageData .numResolutionLevels () );
309- PyramidalBdvDataset < ? > pyramidalBdvDataset = new PyramidalBdvDataset <>( pyramidal5DImageData );
310- assertEquals ( 2 , pyramidalBdvDataset .asSources ().get ( 0 ).getSpimSource ().getNumMipmapLevels () );
309+ PyramidalBdv < ? > pyramidalBdv = new PyramidalBdv <>( pyramidal5DImageData );
310+ assertEquals ( 2 , pyramidalBdv .asSources ().get ( 0 ).getSpimSource ().getNumMipmapLevels () );
311311 }
312312 }
313313
@@ -391,8 +391,8 @@ default void testGetPyramidLevels( String resource ) throws URISyntaxException
391391 try (Context context = new Context ())
392392 {
393393 Pyramidal5DImageData < ? > pyramidal5DImageData = load ( resource , context );
394- PyramidalBdvDataset < ? > pyramidalBdvDataset = new PyramidalBdvDataset <>( pyramidal5DImageData );
395- Source < ? > spimSource = pyramidalBdvDataset .asSources ().get ( 0 ).getSpimSource ();
394+ PyramidalBdv < ? > pyramidalBdv = new PyramidalBdv <>( pyramidal5DImageData );
395+ Source < ? > spimSource = pyramidalBdv .asSources ().get ( 0 ).getSpimSource ();
396396
397397 RandomAccessibleInterval < ? > resolutionLevel0 = spimSource .getSource ( 0 , 0 );
398398 RandomAccess < ? > randomAccessLevel0 = resolutionLevel0 .randomAccess ();
@@ -464,10 +464,10 @@ default void testConverterSetup( final String resource ) throws URISyntaxExcepti
464464 try (Context context = new Context ())
465465 {
466466 Pyramidal5DImageData < ? > pyramidal5DImageData = load ( resource , context );
467- PyramidalBdvDataset < ? > pyramidalBdvDataset = new PyramidalBdvDataset <>( pyramidal5DImageData );
468- BdvHandle bdvHandle = BdvUtils .showBdvAndRegisterDataset ( pyramidalBdvDataset );
467+ PyramidalBdv < ? > pyramidalBdv = new PyramidalBdv <>( pyramidal5DImageData );
468+ BdvHandle bdvHandle = BdvUtils .showBdvAndRegisterDataset ( pyramidalBdv );
469469 List < ConverterSetup > converterSetups =
470- bdvHandle .getConverterSetups ().getConverterSetups ( pyramidalBdvDataset .asSources () );
470+ bdvHandle .getConverterSetups ().getConverterSetups ( pyramidalBdv .asSources () );
471471 assertNotNull ( converterSetups );
472472 if ( resource .contains ( "2d_testing" ) ) // dataset without omero properties
473473 {
0 commit comments