added new field to Data Storage - Data path of last run
This commit is contained in:
1 parent
5b4f7f3f2a
commit
678b5990ea
3 files changed
+27
No files matched your search
@@ -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():
|
||||
|
||||
+13
@@ -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:
|
||||
|
||||
+13
@@ -133,6 +133,19 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_dp">
|
||||
<property name="text">
|
||||
<string>Data Path</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLineEdit" name="_le_datapath"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
Reference in new issue
Block a user