Skip to content

Commit

Permalink
dont print ramp vars to args if useRamp is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
d2fong committed Dec 20, 2019
1 parent 27a0209 commit cb187e8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/TrackStimController.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public void startImageAcquisition(
}

imager.scheduleImagingTasks(numFrames, framesPerSecond, imageSaveDirectory);
saveImagingJobArgs(imageSaveDirectory, numFrames, framesPerSecond, enableStimulator, preStim, stimStrength, stimDuration, stimCycleDuration, numStimCycles, enableRamp, rampBase, rampStart, rampEnd, enableTracking);
}

public void stopImageAcquisition(){
Expand Down Expand Up @@ -292,9 +293,12 @@ private void saveImagingJobArgs(
p.println("stimulation cycle duration (ms): " + String.valueOf(stimCycleDur));
p.println("number of cycles: " + String.valueOf(numCycle));
p.println("ramp enabled: " + String.valueOf(useRamp));
p.println("ramp base: " + String.valueOf(rampBase));
p.println("ramp start: " + String.valueOf(rampStart));
p.println("ramp end: " + String.valueOf(rampEnd));

if(useRamp){
p.println("ramp base: " + String.valueOf(rampBase));
p.println("ramp start: " + String.valueOf(rampStart));
p.println("ramp end: " + String.valueOf(rampEnd));
}
}
p.println("auto-tracking enabled: " + String.valueOf(useTracking));

Expand Down

0 comments on commit cb187e8

Please sign in to comment.