Skip to content

Commit

Permalink
Add quick fix for #654
Browse files Browse the repository at this point in the history
  • Loading branch information
tischi committed Mar 23, 2022
1 parent e58d251 commit a2b6dfd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<artifactId>mobie-viewer-fiji</artifactId>
<version>2.1.8-SNAPSHOT</version>

<!-- mvn clean compile -Dmaven.test.skip=true -->
<!-- mvn clean install -Dscijava.app.directory=/Users/tischer/Desktop/Fiji/Fiji-MoBIE-beta.app -->
<!-- mvn clean install -Dmaven.test.skip=true -Dscijava.app.directory=/Users/tischer/Desktop/Fiji/Fiji-MoBIE-beta.app -->
<!-- mvn clean install -Dscijava.app.directory=/Users/tischer/Desktop/Fiji/Fiji-MoBIE.app -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
public class OpenOMEZARRFromS3Command implements Command {

@Parameter(label = "S3 URL")
public String s3URL = "https://s3.embl.de/i2k-2020/em-raw.ome.zarr";
public String s3URL = "https://s3.embl.de/i2k-2020/platy-raw.ome.zarr";

@Parameter ( label = "Log chunk loading" )
public boolean logChunkLoading = false;

protected static void openAndShow(String s3URL) throws IOException {
SpimData spimData = OMEZarrS3Opener.readURL(s3URL);
s3URL = s3URL.replaceAll( "\\s", "" ); // TODO: Maybe add general function and/or put deeper into code: https://github.com/mobie/mobie-viewer-fiji/issues/654
SpimData spimData = OMEZarrS3Opener.readURL(s3URL.trim());
final OMEZarrViewer viewer = new OMEZarrViewer(spimData);
viewer.show();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class OpenOMEZARRFromS3WithCredentialsCommand extends OpenOMEZARRFromS3Co
@Override
public void run() {
try {
S3Utils.setS3AccessAndSecretKey( new String[]{ s3AccessKey, s3SecretKey} );
S3Utils.setS3AccessAndSecretKey( new String[]{ s3AccessKey, s3SecretKey } );
openAndShow(s3URL);
} catch (IOException e) {
e.printStackTrace();
Expand Down

0 comments on commit a2b6dfd

Please sign in to comment.