             (assoc :frames (range (.numFrames settings))
                    :channels (vec (filter :use-channel
                                           (map ChannelSpec-to-map (.channels settings))))
-                   :positions (vec (range (.. settings positions size)))
+                   :positions (vec (range (.getNumberOfPositions position-list)))
                    :slices (vec (.slices settings))
                    :default-exposure (core getExposure)
                    :custom-intervals-ms (vec (.customIntervalsMs settings)))


;; generic metadata

(defn convert-settings [^SequenceSettings settings]
  (def seqSettings settings)
  (into (sorted-map)
        (-> settings


(defn -run
  ([this acq-settings cleanup? position-list autofocus-device]
    (let [settings (convert-settings acq-settings position-list)]
      (run this settings cleanup? position-list autofocus-device)))
  ([this acq-settings cleanup?]
    (let [position-list (.getPositionList gui)
          settings (convert-settings acq-settings position-list)]
      (run this settings cleanup? position-list (.. gui getAutofocusManager getDevice))))
  ([this acq-settings]
    (-run this acq-settings true)))

