Skip to content

Commit

Permalink
more hacks ...
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanPreibisch committed Nov 17, 2023
1 parent 6e0a661 commit a2f4927
Showing 1 changed file with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,21 +150,38 @@ public Object getValueAt(int rowIndex, int columnIndex)
// THIS IS A HACK, sometimes the pair from activeLinksAfterFilter.get( rowIndex ) does not exist in filteredResults.getPairwiseResults()
// TODO: figure out why :)
if ( filteredResults.getPairwiseResults().get( activeLinksAfterFilter.get( rowIndex ) ) == null )
return null;
return "";

final Group< ViewId > views = filteredResults.getPairwiseResults().get( activeLinksAfterFilter.get( rowIndex ) ).pair().getA();

return views.toString();
}
else if (columnIndex == 1)
{
// THIS IS A HACK, sometimes the pair from activeLinksAfterFilter.get( rowIndex ) does not exist in filteredResults.getPairwiseResults()
// TODO: figure out why :)
if ( filteredResults.getPairwiseResults().get( activeLinksAfterFilter.get( rowIndex ) ) == null )
return "";

final Group< ViewId > views = filteredResults.getPairwiseResults().get( activeLinksAfterFilter.get( rowIndex ) ).pair().getB();
return views.toString();
}
else if (columnIndex == 2)
{
// THIS IS A HACK, sometimes the pair from activeLinksAfterFilter.get( rowIndex ) does not exist in filteredResults.getPairwiseResults()
// TODO: figure out why :)
if ( filteredResults.getPairwiseResults().get( activeLinksAfterFilter.get( rowIndex ) ) == null )
return "";

return filteredResults.getPairwiseResults().get( activeLinksAfterFilter.get( rowIndex ) ).r();
}
else if (columnIndex == 3)
{
// THIS IS A HACK, sometimes the pair from activeLinksAfterFilter.get( rowIndex ) does not exist in filteredResults.getPairwiseResults()
// TODO: figure out why :)
if ( filteredResults.getPairwiseResults().get( activeLinksAfterFilter.get( rowIndex ) ) == null )
return "";

double[] shift = filteredResults.getPairwiseResults().get( activeLinksAfterFilter.get( rowIndex ) ).getTransform().getRowPackedCopy();

StringBuilder res = new StringBuilder();
Expand All @@ -180,13 +197,9 @@ else if (columnIndex == 3)
res.append(df.format( shift[11]) );
return res.toString();
}

else
return "";

}



@Override
public void setStitchingResults(StitchingResults res)
Expand Down

0 comments on commit a2f4927

Please sign in to comment.