Skip to content

Commit

Permalink
Merge branch 'qdyne_module' of github.com:Ulm-IQO/qudi-iqo-modules in…
Browse files Browse the repository at this point in the history
…to qdyne_module
  • Loading branch information
TobiasSpohn committed Feb 13, 2025
2 parents ef36177 + d1ae57b commit 828ba90
Show file tree
Hide file tree
Showing 2 changed files with 141 additions and 105 deletions.
239 changes: 134 additions & 105 deletions src/qudi/gui/qdyne/ui/time_trace_analysis_data_widget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>907</width>
<width>1336</width>
<height>704</height>
</rect>
</property>
Expand Down Expand Up @@ -44,113 +44,142 @@
</widget>
</item>
<item>
<widget class="QGroupBox" name="plot1_GroupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>0</number>
</property>
<property name="title">
<string>Frequency domain</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QGroupBox" name="horizontalGroupBox">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="freq_peaks_label">
<property name="text">
<string>Signal peaks:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="current_peak_comboBox">
<property name="toolTip">
<string>Select the peak at the displayed index.</string>
</property>
<property name="placeholderText">
<string>Select the peak at the displayed index.</string>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>Frequency domain</string>
</attribute>
<widget class="QGroupBox" name="plot1_GroupBox">
<property name="geometry">
<rect>
<x>10</x>
<y>0</y>
<width>1314</width>
<height>287</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string/>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QGroupBox" name="horizontalGroupBox">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="freq_peaks_label">
<property name="text">
<string>Signal peaks:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="current_peak_comboBox">
<property name="toolTip">
<string>Select the peak at the displayed index.</string>
</property>
<property name="placeholderText">
<string>Select the peak at the displayed index.</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="range_spinBox">
<property name="toolTip">
<string>Width around the peak that should be displayed.</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QSplitter" name="plot1_splitter">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="midLineWidth">
<number>0</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<widget class="PlotWidget" name="plot1_PlotWidget">
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustIgnored</enum>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="range_spinBox">
<property name="toolTip">
<string>Width around the peak that should be displayed.</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QSplitter" name="plot1_splitter">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="midLineWidth">
<number>0</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<widget class="PlotWidget" name="plot1_PlotWidget">
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustIgnored</enum>
</property>
</widget>
<widget class="FitWidget" name="plot1_fitwidget" native="true"/>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="plot2_GroupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Time domain</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QSplitter" name="plot2_splitter">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<widget class="PlotWidget" name="plot2_PlotWidget"/>
<widget class="FitWidget" name="plot2_fitwidget" native="true"/>
</widget>
</item>
</layout>
<widget class="FitWidget" name="plot1_fitwidget" native="true"/>
</widget>
</item>
</layout>
</widget>
</widget>
<widget class="QWidget" name="tab2">
<attribute name="title">
<string>Time domain</string>
</attribute>
<widget class="QGroupBox" name="plot2_GroupBox">
<property name="geometry">
<rect>
<x>0</x>
<y>10</y>
<width>1314</width>
<height>308</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string/>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QSplitter" name="plot2_splitter">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<widget class="PlotWidget" name="plot2_PlotWidget"/>
<widget class="FitWidget" name="plot2_fitwidget" native="true"/>
</widget>
</item>
</layout>
</widget>
</widget>
</widget>
</item>
</layout>
Expand Down
7 changes: 7 additions & 0 deletions src/qudi/gui/qdyne/widgets/state_estimation_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,13 @@ class StateEstimationSettingsWidget(MultiSettingsWidget):

def __init__(self, mediator, dataclass_obj):
super().__init__(mediator, dataclass_obj)
self.initialize_data_widgets()

def initialize_data_widgets(self):
if "sequence_length" in self.data_widgets:
self.data_widgets["sequence_length"].setReadOnly(True)
if "bin_width" in self.data_widgets:
self.data_widgets["bin_width"].setReadOnly(True)

@property
def values_dict(self):
Expand Down

0 comments on commit 828ba90

Please sign in to comment.