Skip to content

Commit

Permalink
Add getImages() method to DatasetWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ppouchin committed Mar 11, 2024
1 parent dd4e6df commit f6bb88e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/main/java/fr/igred/omero/containers/DatasetWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,16 @@ public List<ProjectWrapper> getProjects(Client client)
}


/**
* Gets all the images in the dataset (if it was properly loaded from OMERO).
*
* @return See above.
*/
public List<ImageWrapper> getImages() {
return wrap(data.getImages(), ImageWrapper::new);
}


/**
* Gets all images in the dataset available from OMERO.
*
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/fr/igred/omero/containers/DatasetTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ void testGetImagesWithKeyValuePairInDataset() throws Exception {
void testGetImagesFromDataset() throws Exception {
DatasetWrapper dataset = client.getDataset(DATASET1.id);

List<ImageWrapper> images = dataset.getImages(client);
List<ImageWrapper> images = dataset.getImages();
assertEquals(3, images.size());
}

Expand Down

0 comments on commit f6bb88e

Please sign in to comment.