Skip to content

Commit

Permalink
do not move detector for fluorescence scans
Browse files Browse the repository at this point in the history
 * eScan and specRaster
 * NSLS2#153
  • Loading branch information
JunAishima authored and dalekreitler-bnl committed Jan 21, 2022
1 parent 84b1c58 commit 44d5606
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions daq_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,9 @@ def collectData(currentRequest):
os.system(comm_s)
logger.debug('starting initial motions - transmission and detector distance')
daq_macros.setTrans(attenuation)
beamline_lib.mvaDescriptor("detectorDist",colDist)
logger.debug('transmission and detector distance done')
if prot not in ["rasterScreen", "eScan"]:
beamline_lib.mvaDescriptor("detectorDist",colDist)
logger.debug('transmission and detector distance (if not fluorescence-related) done')
# now that the detector is in the correct position, get the beam center
currentRequest['request_obj']['xbeam'] = getPvDesc('beamCenterX')
currentRequest['request_obj']['ybeam'] = getPvDesc('beamCenterY')
Expand Down

0 comments on commit 44d5606

Please sign in to comment.