try to cleanup stuff

This commit is contained in:
2024-11-27 09:25:51 +01:00
parent b029cd62be
commit 24b7f1292d
2 changed files with 31 additions and 25 deletions

View File

@@ -1535,11 +1535,6 @@ class WndSwissMx(QMainWindow, Ui_MainWindow):
except AttributeError as e:
_log.warning(f'no scan parameters for object->skipped:{go}')
continue
trf=np.asmatrix(param['trf'])
p=param['points']
p=(np.hstack((p,np.ones((p.shape[0],1))))*trf).A
param['pts_trf']=p # transformed points in um motor coordinates
param['num_pts']=p.shape[0]
vb=self.vb
grp=self._goTracked
mft=self._moduleFixTarget
@@ -2357,10 +2352,6 @@ object settings:
use_trf=kwargs.get('use_trf', True) # do not use coordinate transformation
if not 'mode' in kwargs:
kwargs['mode']=1
if not use_trf:
trf=kwargs.pop('trf')
points=kwargs['points']
kwargs['points']=kwargs.pop('pts_trf')
sp.setup_sync(verbose=sp.verbose&0x40, timeOfs=dt_misc['time_ofs'], timeCor=dt_misc['time_cor'])
dlg.setLabelText("Download motion program");dlg+=5