Skip to content
Snippets Groups Projects
Commit 4e4e9c8c authored by tpylak's avatar tpylak
Browse files

SE-287 dynamix: bugfix

SVN: 17339
parent cfc2a0c6
No related branches found
No related tags found
No related merge requests found
......@@ -132,8 +132,9 @@ public class HCSImageFileExtractor extends AbstractHCSImageFileExtractor
private WellLocation getWellLocation(File imageFile, final String[] tokens)
{
Map<DynamixWellPosition, WellLocation> map = getWellLocationMapping(imageFile);
String posToken = tokens[2].substring("pos".length());
DynamixWellPosition wellPos =
WellLocationMappingUtils.parseWellPosition(tokens[0], tokens[2]);
WellLocationMappingUtils.parseWellPosition(tokens[0], posToken);
return map.get(wellPos);
}
......
......@@ -43,8 +43,7 @@ class WellLocationMappingUtils
public static DynamixWellPosition parseWellPosition(String sideToken, String posToken)
{
String posNumber = posToken.substring("pos".length());
return new DynamixWellPosition(new Integer(posNumber), isRight(sideToken));
return new DynamixWellPosition(new Integer(posToken), isRight(sideToken));
}
private static Map<DynamixWellPosition, WellLocation> createMapping(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment