add missing files, fix coordinate transformation
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import logging
|
||||
from math import ceil
|
||||
_log=logging.getLogger(__name__)
|
||||
if __name__ == "__main__":
|
||||
logging.basicConfig(level=logging.DEBUG,format='%(name)s:%(levelname)s:%(module)s:%(lineno)d:%(funcName)s:%(message)s ')
|
||||
@@ -11,7 +12,8 @@ if hostname=='ganymede':
|
||||
sys.path.insert(0, os.path.expanduser('~/Documents/prj/SwissFEL/PBTools/'))
|
||||
else:
|
||||
sys.path.insert(0, os.path.expanduser('/sf/cristallina/applications/mx/zamofing_t/PBTools/'))
|
||||
sys.path.insert(0, os.path.expanduser("/photonics/home/gac-cristall/Documents/swissmx_cristallina/slic/"))
|
||||
sys.path.insert(0, os.path.expanduser('/sf/cristallina/applications/mx/slic'))
|
||||
#("/photonics/home/gac-cristall/Documents/swissmx_cristallina/slic/"))
|
||||
#from slic.core.acquisition import SFAcquisition
|
||||
|
||||
from PyQt5.QtWidgets import (QApplication,)
|
||||
@@ -87,7 +89,9 @@ class Jungfrau:
|
||||
except TypeError as e:
|
||||
_log.warning(f'failed to get _pulse_id_start: {e}')
|
||||
if self._daq is not None:
|
||||
self._daq.acquire(run['prefix'], n_pulses=n_pulses+run['padding'], wait=False)
|
||||
n_pulses_run = n_pulses + run['padding']
|
||||
self._daq.acquire(run['prefix'], n_pulses=min(n_pulses_run, 5000), n_repeat=ceil(n_pulses_run/5000), wait=False, cell_name=run['cell_name'])
|
||||
#self._daq.acquire(run['prefix'], n_pulses=n_pulses, wait=False)
|
||||
pass
|
||||
#run['id']+=1
|
||||
cfg.setValue(AppCfg.DAQ_RUN,run)
|
||||
|
||||
Reference in New Issue
Block a user