Skip to content

Commit

Permalink
Merge pull request #450 from jluhrs/feature/SEQNG-507
Browse files Browse the repository at this point in the history
SEQNG-507 Fixed issue with ROI indexes.
  • Loading branch information
jluhrs authored Feb 2, 2018
2 parents 024f2e8 + 53754c8 commit 69f6937
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 69f6937

Please sign in to comment.