Skip to content

Commit b81378c

Browse files
committed
Small modifications in order to fix BIOP/abba_python#35
1 parent 5cc449e commit b81378c

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

src/main/java/ch/epfl/biop/atlas/aligner/command/ABBAStartCommand.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@
1919
description = "Starts ABBA from an Atlas")
2020
public class ABBAStartCommand implements Command {
2121

22-
@Parameter(callback = "coronalCB", visibility = ItemVisibility.MESSAGE)
22+
// The presence of this parameter button will trigger MessageResolverProcessor
23+
@Parameter(visibility = ItemVisibility.MESSAGE)
24+
String message = "Select the atlas slicing orientation";
25+
26+
@Parameter(callback = "coronalCB")
2327
Button coronal;
2428

25-
@Parameter(callback = "sagittalCB", visibility = ItemVisibility.MESSAGE)
29+
@Parameter(callback = "sagittalCB")
2630
Button sagittal;
2731

28-
@Parameter(callback = "horizontalCB", visibility = ItemVisibility.MESSAGE)
32+
@Parameter(callback = "horizontalCB")
2933
Button horizontal;
3034

3135
@Parameter(choices = {
@@ -72,9 +76,9 @@ public void run() {
7276
AffineTransform3D orientation;
7377
try {
7478
orientation = ReslicedAtlas.getTransformFromCoronal(
75-
x_axis.substring(0,3),
76-
y_axis.substring(0,3),
77-
z_axis.substring(0,3)
79+
x_axis.substring(0,2),
80+
y_axis.substring(0,2),
81+
z_axis.substring(0,2)
7882
);
7983
} catch (IllegalArgumentException exception) {
8084
System.err.println("Incorrect arguments, you need to use all three axes.");

0 commit comments

Comments
 (0)