diff --git a/render-ws-java-client/src/main/java/org/janelia/render/client/newsolver/solvers/affine/AffineAlignBlockWorker.java b/render-ws-java-client/src/main/java/org/janelia/render/client/newsolver/solvers/affine/AffineAlignBlockWorker.java index 51f4befe2..236f9888f 100644 --- a/render-ws-java-client/src/main/java/org/janelia/render/client/newsolver/solvers/affine/AffineAlignBlockWorker.java +++ b/render-ws-java-client/src/main/java/org/janelia/render/client/newsolver/solvers/affine/AffineAlignBlockWorker.java @@ -339,6 +339,11 @@ protected boolean assignRegularizationModel( // new HashSet because all tiles link to their common group tile, which is therefore present more than once for ( final Tile< M > groupedTile : new HashSet<>( solveItem.tileToGroupedTile().values() ) ) { + // TODO: 001_000003_078_20220405_180741.1241.0 is only in Block id=1, id=9, not id=0 + // but it is part of solveItem.tileToIdMap().get( solveItem.groupedTileToTiles().get( groupedTile ).get( 0 ) ) + // so somehow it gets in here when assembling everything (must be XY-specific I guess) + try + { final int z = (int)Math.round( solveItem.blockData().rtsc().getTileSpec( @@ -347,6 +352,13 @@ protected boolean assignRegularizationModel( zToGroupedTileList.putIfAbsent(z, new ArrayList<>()); zToGroupedTileList.get( z ).add( groupedTile ); + } + catch ( Exception e ) + { + e.printStackTrace(); + System.out.println( solveItem.tileToIdMap().get( solveItem.groupedTileToTiles().get( groupedTile ).get( 0 ) ) ); + System.exit( 0 ); + } } final ArrayList< Integer > allZ = new ArrayList<>( zToGroupedTileList.keySet() );