def unmountSample(): global mountCounter logger.info("unmountSample") mountCounter = 0 mountedSampleDict = db_lib.beamlineInfo(daq_utils.beamline, 'mountedSample') currentMountedSampleID = mountedSampleDict["sampleID"] if (currentMountedSampleID != ""): puckPos = mountedSampleDict["puckPos"] pinPos = mountedSampleDict["pinPos"] if (robot_lib.unmountRobotSample(puckPos, pinPos, currentMountedSampleID)): db_lib.deleteCompletedRequestsforSample(currentMountedSampleID) robot_lib.finish() set_field("mounted_pin", "") db_lib.beamlineInfo(daq_utils.beamline, 'mountedSample', info_dict={ 'puckPos': 0, 'pinPos': 0, 'sampleID': "" }) return 1 else: return 0
def unmountSample(): global mountCounter mountCounter = 0 mountedSampleDict = db_lib.beamlineInfo(daq_utils.beamline, 'mountedSample') currentMountedSampleID = mountedSampleDict["sampleID"] if (currentMountedSampleID != ""): puckPos = mountedSampleDict["puckPos"] pinPos = mountedSampleDict["pinPos"] if (robot_lib.unmountRobotSample(puckPos,pinPos,currentMountedSampleID)): db_lib.deleteCompletedRequestsforSample(currentMountedSampleID) robot_lib.finish() set_field("mounted_pin","") db_lib.beamlineInfo(daq_utils.beamline, 'mountedSample', info_dict={'puckPos':0,'pinPos':0,'sampleID':""}) return 1 else: return 0