diff --git a/psi_device.py b/psi_device.py
index c3cfbb8..4269337 100644
--- a/psi_device.py
+++ b/psi_device.py
@@ -719,6 +719,7 @@ class Jungfrau:
endstation = loc['end_station'] #'cristallina' #need cdoe form slic to direct this
_log.info(f'got endstation through gui:{endstation}')
jfj_file_prefix = f'sf/{endstation}/data/{pgroup}/raw/run{run_number:04}-{user_tag}/data/acq'
+ self.jfj_file_prefix = jfj_file_prefix
header_appendix = {}
for key in data_proc.keys():
diff --git a/swissmx.py b/swissmx.py
index 0f4a67a..c2c27fb 100755
--- a/swissmx.py
+++ b/swissmx.py
@@ -374,6 +374,9 @@ class WndSwissMx(QMainWindow, Ui_MainWindow):
self._le_runnumber.setReadOnly(True)
self.cb_update_run_number()
+ self._le_datapath.setReadOnly(True)
+ self.cb_update_data_path()
+
#if AppCfg.BEAM_MARKER_POSITIONS in keys:
# self._beam_markers = s.value(AppCfg.BEAM_MARKER_POSITIONS)
# self.update_beam_marker_fitters()
@@ -1785,6 +1788,15 @@ Author Thierry Zamofing (thierry.zamofing@psi.ch)
return
self._le_runnumber.setText(str(run_number))
+ def cb_update_data_path(self):
+ app=QApplication.instance()
+ try:
+ path=app._jungfrau.jfj_file_prefix
+ except AttributeError:
+ self._le_datapath.setText('')
+ return
+ self._le_datapath.setText(path)
+
def cb_testcode(self):
app=QApplication.instance()
cfg=app._cfg
@@ -2453,6 +2465,7 @@ object settings:
num_pts=kwargs['num_pts']
jf.acquire(num_pts)
self.cb_update_run_number()
+ self.cb_update_data_path()
sp.trigger(1.0) # send a start trigger (if needed) after given time
_log.info('start trigger sent')
if dt._comm is None:
diff --git a/swissmx.ui b/swissmx.ui
index cffa71a..8cf2f63 100644
--- a/swissmx.ui
+++ b/swissmx.ui
@@ -133,6 +133,19 @@
+ -
+
+
+ Data Path
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+
+ -
+
+