Skip to content

Commit

Permalink
SEQNG-507 Fixed issue with ROI indexes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jluhrs committed Feb 1, 2018
1 parent 024f2e8 commit 53754c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class GmosControllerEpics[T<:GmosController.SiteDependentTypes](encoders: GmosCo
private def setROI(binning: CCDBinning, s: RegionsOfInterest): SeqAction[Unit] = s.rois match {
case -\/(b) => roiParameters(binning, 1, encoders.builtInROI.encode(b))
case \/-(rois) => rois.zipWithIndex.map { case (roi, i) =>
roiParameters(binning, i, ROIValues.fromOCS(roi))
roiParameters(binning, i + 1, ROIValues.fromOCS(roi))
}.sequenceU.flatMap(_ => SeqAction.void)
}

Expand Down

0 comments on commit 53754c8

Please sign in to comment.