File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ def find_a2rp(md: Optional[Dict[str, Any]] = None):
423423 Generator[Any, None, None]
424424 A generator that yields plan steps
425425 """
426- howWiderRangeToScan = 4
426+ howWiderRangeToScan = 2.5
427427 howManyPoints = 61
428428 if md is None :
429429 md = {}
@@ -453,7 +453,7 @@ def find_a2rp(md: Optional[Dict[str, Any]] = None):
453453 tune_start = - 1 * howWiderRangeToScan * a_stage .r2p .tune_range .get ()
454454 tune_end = howWiderRangeToScan * a_stage .r2p .tune_range .get ()
455455 #tune_start must be larger than 0
456- tune_start = max (tune_start , 0 )
456+ # tune_start = max(tune_start, 0)
457457 tune_end = min (tune_end , 88 )
458458 yield from lineup2 (
459459 [upd_photocurrent_calc , scaler0 ],
Original file line number Diff line number Diff line change @@ -306,16 +306,18 @@ def collectWAXS(debug=False):
306306
307307 logger .info (f"Ramping temperature to { temp1 } C" )
308308
309+ t0 = time .time ()
309310 while (
310311 not ptc10 .temperature .inposition
311312 ): # runs data collection until next temp or sleeps. Change as needed.
312- yield from bps .sleep (5 )
313+ # yield from bps.sleep(5)
313314 logger .info (f"Still Ramping temperature to { temp1 } C" )
314- yield from collectWAXS ()
315+ yield from collectAllThree ()
315316
316317 # logger.info("Reached temperature, now collecting data for %s minutes", delay1min)
317318 logger .info ("Reached temperature, now collecting data for %s seconds" , delay1 )
318319 t1 = time .time ()
320+ t0 = time .time ()
319321
320322 while time .time () - t1 < delay1 : # collects data for delay1 seconds
321323 # yield from bps.sleep(5)
You can’t perform that action at this time.
0 commit comments