Skip to content

Commit

Permalink
Update N5 dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
AvocadoMoon committed Jan 22, 2024
1 parent 12e4f71 commit 592613d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
<dependency>
<groupId>org.janelia.saalfeldlab</groupId>
<artifactId>n5</artifactId>
<version>2.5.1</version>
<version>3.0.2</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.janelia.saalfeldlab/n5-imglib2 -->
Expand Down Expand Up @@ -177,7 +177,7 @@
<dependency>
<groupId>org.janelia.saalfeldlab</groupId>
<artifactId>n5-aws-s3</artifactId>
<version>3.2.0</version>
<version>4.0.0</version>
</dependency>


Expand Down
19 changes: 3 additions & 16 deletions src/main/java/org/vcell/vcellfiji/N5ImageHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ public ArrayList<String> getN5DatasetList(){
};
}
return fList;
} catch (IOException e) {
throw new RuntimeException(e);
}
}

Expand Down Expand Up @@ -236,20 +234,12 @@ private void displayN5Dataset(ImagePlus imagePlus){
}

public N5AmazonS3Reader getN5AmazonS3Reader(){
try(N5AmazonS3Reader n5AmazonS3Reader = new N5AmazonS3Reader(this.s3Client, this.bucketName, this.s3ObjectKey)){
return n5AmazonS3Reader;
}
catch (IOException e){
throw new RuntimeException(e);
}
return new N5AmazonS3Reader(this.s3Client, this.bucketName, this.s3ObjectKey);
}

public N5FSReader getN5FSReader(){
try (N5FSReader n5FSReader = new N5FSReader(selectedLocalFile.getPath())) {
return n5FSReader;
} catch (IOException e) {
throw new RuntimeException(e);
}
return new N5FSReader(selectedLocalFile.getPath());

}

public void loadN5Dataset(String selectedDataset) throws IOException {
Expand Down Expand Up @@ -321,9 +311,6 @@ public ArrayList<String> getS3N5DatasetList(){
try(N5AmazonS3Reader n5AmazonS3Reader = new N5AmazonS3Reader(this.s3Client, this.bucketName)) {
return new ArrayList<>(Arrays.asList(n5AmazonS3Reader.deepListDatasets(this.s3ObjectKey)));
}
catch (IOException e){
throw new RuntimeException(e);
}
}


Expand Down

0 comments on commit 592613d

Please sign in to comment.