              :pixel-size-um (core getPixelSizeUm)
              :source (core getCameraDevice)
              :pixel-type (get-pixel-type)
-            }
       )))
 
 (defn cleanup []

  (let [out-queue (GentleLinkedBlockingQueue.)
        settings (convert-settings acq-settings)
        summary-metadata (make-summary-metadata settings)]
    (swap! (.state this) assoc :summary-metadata summary-metadata)
    (let [acq-thread (Thread. #(run-acquisition this settings out-queue)
                              "Acquisition Engine Thread (Clojure)")

        z (get-z-stage-position default-z-drive)
        xy (get-xy-stage-position default-xy-stage)
        exposure (core getExposure)]
    (swap! (.state this) assoc
             :pause false
             :stop false
             :finished false
