-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update MFOV tools so that they work with wafer 60/61 tile IDs
- Loading branch information
Showing
7 changed files
with
84 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...ws-java-client/src/test/java/org/janelia/render/client/multisem/MFOVPositionPairTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package org.janelia.render.client.multisem; | ||
|
||
import org.janelia.alignment.match.CanvasId; | ||
import org.janelia.alignment.match.MontageRelativePosition; | ||
import org.junit.Assert; | ||
import org.junit.Test; | ||
|
||
/** | ||
* Tests the {@link MFOVPositionPair} class. | ||
* | ||
* @author Eric Trautman | ||
*/ | ||
public class MFOVPositionPairTest { | ||
|
||
@Test | ||
public void testToPositionCanvasId() { | ||
final CanvasId tilePairId = new CanvasId("1.0", | ||
"w60_magc0399_scan004_m0013_s001", | ||
MontageRelativePosition.LEFT); | ||
final CanvasId positionPairId = MFOVPositionPair.toPositionCanvasId(tilePairId); | ||
Assert.assertEquals("invalid canvas group id", "magc0399", positionPairId.getGroupId()); | ||
Assert.assertEquals("invalid canvas id", "m0013_s001", positionPairId.getId()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
render-ws-java-client/src/test/java/org/janelia/render/client/multisem/UtilitiesTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.janelia.render.client.multisem; | ||
|
||
import org.junit.Assert; | ||
import org.junit.Test; | ||
|
||
/** | ||
* Tests the {@link Utilities} class. | ||
* | ||
* @author Eric Trautman | ||
*/ | ||
public class UtilitiesTest { | ||
|
||
@Test | ||
public void testTileIdParsers() { | ||
final String tileId = "w60_magc0399_scan005_m0013_s001"; | ||
Assert.assertEquals("invalid MFOVForTileId", | ||
"0399_m0013", Utilities.getMFOVForTileId(tileId)); | ||
Assert.assertEquals("invalid SFOVForTileId", | ||
"0399_m0013_s001", Utilities.getSFOVForTileId(tileId)); | ||
Assert.assertEquals("invalid SFOVIndexForTileId", | ||
"001", Utilities.getSFOVIndexForTileId(tileId)); | ||
} | ||
|
||
} |