SFELPHOTON-1128: debug stup-and-go motion
This commit is contained in:
@@ -80,6 +80,7 @@ class Deltatau:
|
||||
app=QApplication.instance()
|
||||
cfg=app._cfg
|
||||
host=cfg.value(AppCfg.DT_HOST)
|
||||
# sim=False;host='localhost:10001:10002' # this only moves motors during acquisition
|
||||
if sim:
|
||||
self._comm=comm=None
|
||||
self._gather=gather=None
|
||||
@@ -119,6 +120,7 @@ class Jungfrau:
|
||||
def config(self,**kwargs):
|
||||
if getattr(self,'_sim',False):
|
||||
_log.info(f'simulated')
|
||||
return
|
||||
app=QApplication.instance() #temproary fix, couldnt access these in function, maybe the bt above needs to be self.detectors ... etc
|
||||
cfg=app._cfg
|
||||
det = cfg.value(AppCfg.DAQ_DET)
|
||||
@@ -193,6 +195,9 @@ class Jungfrau:
|
||||
rate_multiplicator=1, append_user_tag_to_data_dir=True)
|
||||
|
||||
def acquire(self, n_pulses, wait=False):
|
||||
if getattr(self,'_sim',False):
|
||||
_log.info(f'simulated')
|
||||
return
|
||||
try:
|
||||
daq=self._daq
|
||||
except AttributeError:
|
||||
@@ -218,6 +223,9 @@ class Jungfrau:
|
||||
cfg.setValue(AppCfg.DAQ_RUN,run)
|
||||
|
||||
def gather_upload(self):
|
||||
if getattr(self,'_sim',False):
|
||||
_log.info(f'simulated')
|
||||
return
|
||||
try:
|
||||
daq=self._daq
|
||||
except AttributeError:
|
||||
|
||||
Reference in New Issue
Block a user