Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get file format #80

Merged
merged 3 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/main/java/fr/igred/omero/repository/ImageWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,16 @@ public Timestamp getAcquisitionDate() {
}


/**
* Returns the format of the image.
*
* @return See above.
*/
public String getFormat() {
return data.getFormat();
}


/**
* Returns the type of annotation link for this object.
*
Expand Down
6 changes: 6 additions & 0 deletions src/test/java/fr/igred/omero/repository/ImageTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,12 @@ void testGetAcquisitionDate() throws Exception {
}


@Test
void testGetFormat() throws Exception {
assertEquals("Fake", client.getImage(IMAGE1.id).getFormat());
}


@Test
void testGetChannel() throws Exception {
ChannelWrapper channel = client.getImage(IMAGE1.id).getChannels(client).get(0);
Expand Down
Loading