use of org.eclipse.scanning.api.annotation.scan.ScanEnd in project gda-core by openGDA.
the class AreaDetectorRunnableDevice method scanEnd.
/**
* add call to {@link ADDetector#atScanEnd()} so decorators in collection strategy work to restore detector state.
*/
@Override
@ScanEnd
public void scanEnd(ScanInformation info) throws ScanningException {
super.scanEnd(info);
try {
adDetector.atScanEnd();
firstPointInScan = false;
} catch (DeviceException e) {
throw new ScanningException("Error calling atScanEnd", e);
}
}
Aggregations