change requests: SFELPHOTON-640
This commit is contained in:
16
Readme.md
16
Readme.md
@@ -118,15 +118,15 @@ ssh gac-cristall@saresc-cons-03
|
|||||||
pw: ValToira_2021
|
pw: ValToira_2021
|
||||||
```
|
```
|
||||||
|
|
||||||
|
4.10.22 final test:
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
zamofing_t@ganymede:~$ ssh gac-cristall@saresc-cons-03
|
||||||
|
cd /sf/cristallina/applications/mx/zamofing_t/ESB_MX/python/SwissMX/
|
||||||
|
conda activate /sf/cristallina/applications/conda/envs/crmx38
|
||||||
|
python swissmx.py
|
||||||
|
```
|
||||||
|
|
||||||
----------------------------------- SCRATCH -----------------------------------
|
----------------------------------- SCRATCH -----------------------------------
|
||||||
|
|
||||||
-0.952
|
-0.952
|
||||||
|
|||||||
@@ -439,6 +439,13 @@ verbose bits:
|
|||||||
parent=param.parent()
|
parent=param.parent()
|
||||||
par_nm=parent.name()
|
par_nm=parent.name()
|
||||||
nm=param.name()
|
nm=param.name()
|
||||||
|
if par_nm in (AppCfg.DAQ_BS_CH, AppCfg.DAQ_PV_CH, AppCfg.DAQ_DET, AppCfg.DAQ_LOC):
|
||||||
|
# this hack must be doneto force a new allocation of a jungfrau object
|
||||||
|
_log.info('delete jungfrau object if existing')
|
||||||
|
try:
|
||||||
|
del app._jungfrau
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
if par_nm==AppCfg.GEO_BEAM_SZ:
|
if par_nm==AppCfg.GEO_BEAM_SZ:
|
||||||
v = np.array(tuple(map(lambda x: x.value(),parent.children())))
|
v = np.array(tuple(map(lambda x: x.value(),parent.children())))
|
||||||
cfg.setValue(par_nm,v)
|
cfg.setValue(par_nm,v)
|
||||||
@@ -459,7 +466,7 @@ verbose bits:
|
|||||||
except TypeError:
|
except TypeError:
|
||||||
_log.warning(f'failed to parse {AppCfg.GEO_CAM_PARAM}:{d}')
|
_log.warning(f'failed to parse {AppCfg.GEO_CAM_PARAM}:{d}')
|
||||||
cfg.setValue(par_nm, d)
|
cfg.setValue(par_nm, d)
|
||||||
elif nm in(AppCfg.GEO_CAM_TRF):
|
elif nm == AppCfg.GEO_CAM_TRF:
|
||||||
s=param.value()
|
s=param.value()
|
||||||
#https://docs.python.org/3/library/re.html#simulating-scanf + no grouping
|
#https://docs.python.org/3/library/re.html#simulating-scanf + no grouping
|
||||||
trf=np.array(tuple(map(float,re.findall('[-+]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][-+]?\d+)?',s)))).reshape(3,3)
|
trf=np.array(tuple(map(float,re.findall('[-+]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][-+]?\d+)?',s)))).reshape(3,3)
|
||||||
|
|||||||
@@ -2036,6 +2036,12 @@ Author Thierry Zamofing (thierry.zamofing@psi.ch)
|
|||||||
mft._tree.setData(grp.childItems())
|
mft._tree.setData(grp.childItems())
|
||||||
|
|
||||||
def module_fix_target_del_all_obj(self):
|
def module_fix_target_del_all_obj(self):
|
||||||
|
app=QApplication.instance()
|
||||||
|
geo=app._geometry
|
||||||
|
try: #remove plane fitter if it esists
|
||||||
|
del geo._fitPlane
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
mft=self._moduleFixTarget
|
mft=self._moduleFixTarget
|
||||||
vb=self.vb
|
vb=self.vb
|
||||||
grp=self._goTracked
|
grp=self._goTracked
|
||||||
|
|||||||
Reference in New Issue
Block a user