public PositiveInteger getPlateColumns(int plateIndex) { // Parents: {u'OME': None} // Columns is not a reference return root.getPlate(plateIndex).getColumns(); }
public PositiveInteger getPlateColumns(int plateIndex) { // Parents: {u'OME': None} // Columns is not a reference return root.getPlate(plateIndex).getColumns(); }
@Test(dependsOnMethods={"testValidPlateNode"}) public void testValidWellSamples() { Plate plate = ome.getPlate(0); Integer wellSampleIndex = 0; for (int row=0; row<plate.getRows().getValue(); row++) { for (int col=0; col<plate.getColumns().getValue(); col++) { Well well = plate.getWell(row * plate.getColumns().getValue() + col); assertEquals(1, well.sizeOfWellSampleList()); WellSample sample = well.getWellSample(0); assertNotNull(sample); assertEquals(String.format("WellSample:%d_%d", row, col), sample.getID()); assertEquals(wellSampleIndex, sample.getIndex().getValue()); Image image = sample.getLinkedImage(); assertNotNull(image); assertEquals(IMAGE_ID, image.getID()); wellSampleIndex++; } } }
@Test(dependsOnMethods={"testValidOMENode"}) public void testValidPlateNode() { Plate plate = ome.getPlate(0); assertNotNull(plate); assertEquals(PLATE_ID, plate.getID()); assertEquals(plate.getRows(), WELL_ROWS); assertEquals(plate.getColumns(), WELL_COLS); assertEquals(plate.getRowNamingConvention(), WELL_ROW); assertEquals(plate.getColumnNamingConvention(), WELL_COL); assertEquals(plate.sizeOfWellList(), WELL_ROWS.getValue() * WELL_COLS.getValue()); for (Integer row=0; row<WELL_ROWS.getValue(); row++) { for (Integer col=0; col<WELL_COLS.getValue(); col++) { Well well = plate.getWell(row * WELL_COLS.getValue() + col); assertNotNull(well); assertEquals(String.format("Well:%d_%d", row, col), well.getID()); assertEquals(well.getRow(), row); assertEquals(well.getColumn(), col); } } }