Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
RASTER_TUNE_ICE_RING_WIDTH = 'rasterTuneIceRingWidth'
RASTER_DOZOR_SPOT_LEVEL = 'rasterDozorSpotLevel'
RASTER_NUM_CELLS_DELAY_THRESHOLD = 'rasterNumCellsThresholdDelay'
RASTER_DOZOR_PREFIX = 'titania-cpu'
RASTER_DOZOR_NODE_COUNT = 2
RASTER_DOZOR_FILE_DELAY = 0.1

# timing delays
ISPYB_RESULT_ENTRY_DELAY = 'ispybResultEntryDelay'
Expand Down
6 changes: 3 additions & 3 deletions daq_macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,10 +821,10 @@ def runDozorThread(directory,
"""
global rasterRowResultsList,processedRasterRowCount

time.sleep(10.0) #allow for file writing
time.sleep(RASTER_DOZOR_FILE_DELAY) #allow for file writing

#node = getNodeName("spot", rowIndex, 8)
node = "titania-cpu00"+str((rowIndex%4)+1)
node = RASTER_DOZOR_PREFIX + str((rowIndex%RASTER_DOZOR_NODE_COUNT)+1).zfill(3)
logger.info(f"distributing row {rowIndex} to {node}")

if (seqNum>-1): #eiger
Expand Down Expand Up @@ -3688,7 +3688,7 @@ def armed_callback(value, old_value, **kwargs):
rasterFilePrefix = rasterFilePrefix.split("/")[-1]
logger.info(f"raster prefix {rasterFilePrefix}")
for i in range(0, number_of_lines):
time.sleep(1.0)
time.sleep(RASTER_DOZOR_FILE_DELAY)
row_index = i
logger.info(f'spot finding for row {i}')
seqNum = raster_flyer.detector.cam.sequence_id.get()
Expand Down