Class SequenceSettings
java.lang.Object
org.micromanager.acquisition.SequenceSettings
SequenceSettings objects contain the parameters describing how to run a
single acquisition. Various methods of the AcquisitionManager will consume
or generate SequenceSettings, and you can create your own to configure your
custom acquisitions.
Maintainer note: This should be an interface, but kept as a class for backward compatibility.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSequenceSettings Builder. -
Field Summary
FieldsModifier and TypeFieldDescriptionintDeprecated.use Builder and cameraTimeout() insteadDeprecated.use Builder and channelGroup() insteadDeprecated.use Builder and channels() insteadDeprecated.use Builder and comment() insteadDeprecated.use Builder and customIntervalsMs() insteaddoubleDeprecated.use Builder and intervalMs() insteadbooleanDeprecated.use Builder and keepShutterOpenChannels() insteadbooleanDeprecated.use Builder and keepShutterOpenSlices() insteadintDeprecated.use Builder and numFrames() insteadDeprecated.use Builder and prefix() insteadbooleanDeprecated.use Builder and relativeZSlice() insteadDeprecated.use Builder and root() insteadbooleanDeprecated.use Builder and save() insteadbooleanDeprecated.use Builder and shouldDisplayImages() insteadintDeprecated.use Builder and skipAutofocusCount() insteadDeprecated.use Builder and slices() insteadbooleanDeprecated.use Builder and slicesFirst() insteadbooleanDeprecated.use Builder and timeFirst() insteadbooleanDeprecated.use Builder and useAutofocus() insteadbooleanDeprecated.use Builder and useCustomIntervals() insteadbooleanDeprecated.use Builder and usePositionList() insteadstatic final doubledoubleDeprecated.use Builder and zReference() instead -
Method Summary
Modifier and TypeMethodDescriptionintOrder of the various axes during acquisition as defined inAcqOrderMode.intMinimum camera timeout, in ms, for sequence acquisitions (actual timeout depends on exposure time and other factors).Configuration group used to define channels used in the acquisition.channels()List with channel definitions to be used in the acquisition.comment()Text comment to be attached to the acquired data.copy()Deprecated.When used correctly, SequenceSettings are immutable.Time intervals between the starts of time points in milliseconds.intTime unit, only used to store preferred way to display the time.static SequenceSettingsfromJSONStream(String stream) doubledoubleDesired interval between the start of two consecutive time points in milliseconds.booleanWhether this is a test acquisition.booleanWhether to keep shutter open during channel changes.booleanWhether to keep shutter open during z-stack stage movements.intNumber of time points to be acquired.prefix()Acquisition name.booleanWhether to base the z Top and Bottom for a z stack relative to a referent position or treat them as absolute values.root()Directory where data will be saved.booleansave()Whether the data acquisition should be stored on disk.saveMode()File format to be used to save this acquisition whensave()is set.booleanWhether to display acquired data.inthow many autofocus opportunities to skip.slices()Z- drive positions to be used to acquire a z-stack.doubleStart position of the z-stack in microns.doubleDistance the z-drive should travel between steps when acquiring a z-stack.doubleEnd position of the z-stack in microns.static StringtoJSONStream(SequenceSettings settings) toString()booleanWhether to use autofocus before each time point / position.booleanWhether to acquire multiple channels during the acquisition.booleanWhether to use custom time intervals definedcustomIntervalsMs().booleanWhether to acquire multiple time points during the acquisition.booleanWhether to acquire at multiple positions (defined in the positionList).booleanWhether to acquire z stacks during the acquisition.doublereferent z position for relative moves.
-
Field Details
-
Version
public static final double Version- See Also:
-
numFrames
-
intervalMs
-
useCustomIntervals
Deprecated.use Builder and useCustomIntervals() insteadWhether or not to use custom time intervals. Do not set this to true if customIntervalsMs is null! -
customIntervalsMs
Deprecated.use Builder and customIntervalsMs() insteadSequence of custom intervals or null. -
channels
Deprecated.use Builder and channels() insteadAn array of ChannelSpec settings (one for each channel). no member of the array should ever by null. -
slices
Deprecated.use Builder and slices() insteadSlice Z coordinates. -
relativeZSlice
Deprecated.use Builder and relativeZSlice() insteadare Z coordinates relative or absolute. -
slicesFirst
Deprecated.use Builder and slicesFirst() insteadslice coordinate changes first. -
timeFirst
Deprecated.use Builder and timeFirst() insteadframe coordinate changes first. -
keepShutterOpenSlices
Deprecated.use Builder and keepShutterOpenSlices() insteaddo we keep shutter open during slice changes. -
keepShutterOpenChannels
Deprecated.use Builder and keepShutterOpenChannels() insteaddo we keep shutter open channel changes. -
useAutofocus
Deprecated.use Builder and useAutofocus() insteadare we going to run autofocus before acquiring each position/frame. -
skipAutofocusCount
Deprecated.use Builder and skipAutofocusCount() insteadhow many autofocus opportunities to skip. -
save
Deprecated.use Builder and save() insteadWhether or not to save to disk. -
root
-
prefix
-
zReference
Deprecated.use Builder and zReference() insteadreferent z position for relative moves. -
comment
-
channelGroup
Deprecated.use Builder and channelGroup() insteadwhich configuration group is used to define channels. -
usePositionList
Deprecated.use Builder and usePositionList() insteadtrue if we want to have multiple positions. -
cameraTimeout
Deprecated.use Builder and cameraTimeout() insteadMinimum camera timeout, in ms, for sequence acquisitions. (actual timeout depends on exposure time and other factors) -
shouldDisplayImages
Deprecated.use Builder and shouldDisplayImages() insteadWhether or not to display images generated by the acquisition.
-
-
Method Details
-
copy
Deprecated.When used correctly, SequenceSettings are immutable. If you really need a copy, use copyBuilder().build();Create a copy of this SequenceSettings. All parameters will be copied, with new objects being created as necessary (i.e. this is a deep copy).- Returns:
- Copy of this SequenceSettings.
-
copyBuilder
-
numFrames
public int numFrames()Number of time points to be acquired. Defines a sequence of time points together withintervalMs(). Will be overriden whenuseCustomIntervals()andcustomIntervalsMs()are set. -
intervalMs
public double intervalMs()Desired interval between the start of two consecutive time points in milliseconds. Defines a sequence of time points together r withnumFrames(). Will be overriden whenuseCustomIntervals()andcustomIntervalsMs()are set. -
displayTimeUnit
public int displayTimeUnit()Time unit, only used to store preferred way to display the time.- Returns:
- 0-milliseconds, 1-seconds, 2-minutes
-
useCustomIntervals
public boolean useCustomIntervals()Whether to use custom time intervals definedcustomIntervalsMs().- Returns:
- use custom time intervals when true
-
customIntervalsMs
-
channels
List with channel definitions to be used in the acquisition.- Returns:
- List with channel definitions to be used in the acquisition
-
slices
-
relativeZSlice
public boolean relativeZSlice()Whether to base the z Top and Bottom for a z stack relative to a referent position or treat them as absolute values.- Returns:
- true when values are relative
-
keepShutterOpenSlices
public boolean keepShutterOpenSlices()Whether to keep shutter open during z-stack stage movements. -
keepShutterOpenChannels
public boolean keepShutterOpenChannels()Whether to keep shutter open during channel changes. -
useAutofocus
public boolean useAutofocus()Whether to use autofocus before each time point / position.- Returns:
- Whether to use autofocus before each time point / position
-
skipAutofocusCount
public int skipAutofocusCount()how many autofocus opportunities to skip. -
save
public boolean save()Whether the data acquisition should be stored on disk.- Returns:
- save when true, otherwise to RAMM only
-
saveMode
File format to be used to save this acquisition whensave()is set. Formats are defined inDatastore.SaveMode. Currently: 0 -Datastore.SaveMode.SINGLEPLANE_TIFF_SERIES1 -Datastore.SaveMode.MULTIPAGE_TIFF- Returns:
- integer representing
Datastore.SaveMode
-
root
Directory where data will be saved.- Returns:
- Directory where data will be saved
-
prefix
Acquisition name. Will be used in storage and display.- Returns:
- acquisition name
-
zReference
public double zReference()referent z position for relative moves. -
comment
-
channelGroup
Configuration group used to define channels used in the acquisition. -
usePositionList
public boolean usePositionList()Whether to acquire at multiple positions (defined in the positionList).- Returns:
- True if positions in the list should all be visited, when false, only acquired at current position
-
cameraTimeout
public int cameraTimeout()Minimum camera timeout, in ms, for sequence acquisitions (actual timeout depends on exposure time and other factors). -
shouldDisplayImages
public boolean shouldDisplayImages()Whether to display acquired data. -
useSlices
public boolean useSlices()Whether to acquire z stacks during the acquisition. -
useFrames
public boolean useFrames()Whether to acquire multiple time points during the acquisition. -
useChannels
public boolean useChannels()Whether to acquire multiple channels during the acquisition. -
sliceZStepUm
public double sliceZStepUm()Distance the z-drive should travel between steps when acquiring a z-stack. -
sliceZBottomUm
public double sliceZBottomUm()Start position of the z-stack in microns. Can be absolute or relative to current position. -
sliceZTopUm
public double sliceZTopUm()End position of the z-stack in microns. Can be absolute or relative to current position. -
acqOrderMode
public int acqOrderMode()Order of the various axes during acquisition as defined inAcqOrderMode. Currently available orders: 0 -AcqOrderMode.TIME_POS_SLICE_CHANNEL1 -AcqOrderMode.TIME_POS_CHANNEL_SLICE2 -AcqOrderMode.POS_TIME_SLICE_CHANNEL3 -AcqOrderMode.POS_TIME_CHANNEL_SLICE- Returns:
- integer representing enum
AcqOrderMode
-
isTestAcquisition
public boolean isTestAcquisition()Whether this is a test acquisition. Test acquisitions are not saved to disk and are used for testing purposes. They differ from normal acquisition that are not saved to disk by their intent, i.e. Test Acquisitions are quick throw away acquisition to ensure that all the settings are correct, whereas normal acquisition that are not saved to disk are useful acquisition that the user may alter want to save. TestAcquisition are especially convenient with modalities like Light Sheet and function as the equivalent of a Preview window but then for the complete Z-stack (with multiple channels if so desired).- Returns:
- true if this is a test acquisition, false otherwise
-
getVersion
public double getVersion() -
toJSONStream
-
fromJSONStream
-
toString
-