Skip to content

Commit 52ce798

Browse files
authored
Merge pull request #137 from ome/fix-in-memory-output-location
Fix output path for in-memory writing test
2 parents e06d841 + d7f5ae4 commit 52ce798

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/ExampleSuite.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static void main(String[] args) throws Exception {
103103
overlappedInputFile.getAbsolutePath(), overlappedTiledFile.getAbsolutePath(), "96", "96"});
104104
execute("OverlappedTiledWriter", new String[] {
105105
overlappedInputFile.getAbsolutePath(), overlappedTiledFile2.getAbsolutePath(), "192", "96"});
106-
execute("ReadWriteInMemory", new String[] {inputFile.getAbsolutePath()});
106+
execute("ReadWriteInMemory", new String[] {inputFile.getAbsolutePath(), inMemoryFile.getAbsolutePath()});
107107
execute("OrthogonalReader", new String[] {"--input", inputFile.getAbsolutePath(),
108108
"--output", orthogonalFile.getAbsolutePath()});
109109
execute("SubResolutionExample", new String[] { pyramidFile.getAbsolutePath()});

src/main/java/ReadWriteInMemory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ public static void main(String[] args)
160160
// flush output byte array to disk
161161
System.out.println();
162162
System.out.println("Flushing image data to disk...");
163-
File outFile = new File(fileName + ".ome.tif");
163+
String outFileName = args.length > 1 ? args[1] : fileName + ".ome.tif";
164+
File outFile = new File(outFileName);
164165
DataOutputStream out = new DataOutputStream(new FileOutputStream(outFile));
165166
out.write(outBytes);
166167
out.close();

0 commit comments

Comments
 (0)