Skip to content

Commit

Permalink
Merge pull request #153 from bls337/main
Browse files Browse the repository at this point in the history
get timepoints control to work correctly
  • Loading branch information
bls337 authored Sep 28, 2023
2 parents 95585c9 + 165d836 commit 851f323
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import java.util.Objects;

public class NavigationTab extends Panel {
public class NavigationTab extends Panel {

private final NavigationPanel navigationPanel_;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@ private void createUserInterface() {

// TODO: update duration labels
private void createEventHandlers() {
final DefaultAcquisitionSettingsDISPIM.Builder asb_ =
final DefaultAcquisitionSettingsDISPIM.Builder asb =
model_.acquisitions().settingsBuilder();

spnNumTimePoints_.registerListener(e -> {
asb_.numTimePoints(spnNumTimePoints_.getInt());
asb.numTimePoints(spnNumTimePoints_.getInt());
//updateDurationLabels();
//System.out.println("getNumTimePoints: " + model_.acquisitions().getAcquisitionSettings().getNumTimePoints());
});

spnTimePointInterval_.registerListener(e -> {
asb_.timePointInterval(spnTimePointInterval_.getInt());
asb.timePointInterval(spnTimePointInterval_.getInt());
//updateDurationLabels();
//System.out.println("getTimePointInterval: " + model_.acquisitions().getAcquisitionSettings().getTimePointInterval());
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ private void runAcquisitionSCAPE() {
// System.out.println(asb_.build());
final boolean isPolling = frame_.getNavigationPanel().isPolling();
if (isPolling) {
System.out.println("stopped!");
studio_.logs().logMessage("stopped position polling");
//System.out.println("stopped!");
frame_.getNavigationPanel().stopPolling();
}

Expand All @@ -200,9 +201,6 @@ private void runAcquisitionSCAPE() {
asb_.sheetCalibrationBuilder(1).useAutoSheetWidth(true);
asb_.sheetCalibrationBuilder(1).autoSheetWidthPerPixel(0.0);

// TODO: put this here for now... (make sure vars are updated)
setAcquisitionSettings(asb_.build());

final boolean isLiveModeOn = studio_.live().isLiveModeOn();
if (isLiveModeOn) {
studio_.live().setLiveModeOn(false);
Expand Down Expand Up @@ -634,6 +632,7 @@ public void close() {

// start polling for navigation panel
if (isPolling) {
studio_.logs().logMessage("started position polling after acquisition");
frame_.getNavigationPanel().startPolling();
}
}
Expand Down

0 comments on commit 851f323

Please sign in to comment.