From cb187e806f290c63507eb9fe0452928e9828bb96 Mon Sep 17 00:00:00 2001 From: Dylan Fong Date: Fri, 20 Dec 2019 15:14:56 -0500 Subject: [PATCH] dont print ramp vars to args if useRamp is disabled --- src/TrackStimController.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/TrackStimController.java b/src/TrackStimController.java index ad445ce..1c970d9 100644 --- a/src/TrackStimController.java +++ b/src/TrackStimController.java @@ -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(){ @@ -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));