custom start & end + small math fixes

This commit is contained in:
2021-07-23 11:03:43 -07:00
parent 8f4f868c85
commit 22b7fe7333
4 changed files with 222 additions and 117 deletions

View File

@@ -58,7 +58,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>651</width>
<width>811</width>
<height>531</height>
</rect>
</property>
@@ -73,20 +73,50 @@
<rect>
<x>0</x>
<y>0</y>
<width>651</width>
<width>601</width>
<height>531</height>
</rect>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_3">
<property name="geometry">
<rect>
<x>600</x>
<y>10</y>
<width>211</width>
<height>161</height>
</rect>
</property>
<property name="title">
<string>Time constant output</string>
</property>
<widget class="QTextBrowser" name="tau_output">
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>191</width>
<height>131</height>
</rect>
</property>
<property name="html">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</widget>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>10</x>
<y>120</y>
<y>10</y>
<width>241</width>
<height>111</height>
<height>231</height>
</rect>
</property>
<property name="font">
@@ -99,13 +129,13 @@
<property name="title">
<string>Grouping Config</string>
</property>
<widget class="QStackedWidget" name="stackedWidget">
<widget class="QStackedWidget" name="grouping_config_area">
<property name="geometry">
<rect>
<x>10</x>
<y>50</y>
<width>221</width>
<height>31</height>
<height>91</height>
</rect>
</property>
<property name="currentIndex">
@@ -118,7 +148,7 @@
<x>0</x>
<y>0</y>
<width>221</width>
<height>22</height>
<height>91</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout_4">
@@ -148,8 +178,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>211</width>
<height>22</height>
<width>221</width>
<height>103</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout">
@@ -170,6 +200,54 @@
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Min peak height</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QDoubleSpinBox" name="spin_min_peakheight">
<property name="decimals">
<number>6</number>
</property>
<property name="value">
<double>0.000400000000000</double>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Min peak prominence</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QDoubleSpinBox" name="spin_min_peakprominence">
<property name="decimals">
<number>6</number>
</property>
<property name="value">
<double>0.001200000000000</double>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Moving average size</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QSpinBox" name="spin_moving_average_denom">
<property name="value">
<number>20</number>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
@@ -198,7 +276,7 @@
<property name="geometry">
<rect>
<x>10</x>
<y>80</y>
<y>200</y>
<width>221</width>
<height>20</height>
</rect>
@@ -210,12 +288,64 @@
<bool>true</bool>
</property>
</widget>
<widget class="QWidget" name="formLayoutWidget_5">
<property name="geometry">
<rect>
<x>10</x>
<y>150</y>
<width>233</width>
<height>51</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout_5">
<item row="0" column="0">
<widget class="QCheckBox" name="check_custom_start">
<property name="text">
<string>Custom Start Time</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QDoubleSpinBox" name="spin_start_time">
<property name="enabled">
<bool>false</bool>
</property>
<property name="decimals">
<number>6</number>
</property>
<property name="minimum">
<double>-99.989999999999995</double>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="check_custom_end">
<property name="text">
<string>Custom End Time</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QDoubleSpinBox" name="spin_end_time">
<property name="enabled">
<bool>false</bool>
</property>
<property name="decimals">
<number>6</number>
</property>
<property name="minimum">
<double>-99.989999999999995</double>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<widget class="QPushButton" name="correlate_button">
<property name="geometry">
<rect>
<x>60</x>
<y>240</y>
<x>50</x>
<y>250</y>
<width>151</width>
<height>28</height>
</rect>
@@ -236,7 +366,7 @@
<property name="geometry">
<rect>
<x>10</x>
<y>340</y>
<y>350</y>
<width>241</width>
<height>181</height>
</rect>
@@ -320,7 +450,7 @@
<property name="geometry">
<rect>
<x>60</x>
<y>530</y>
<y>540</y>
<width>151</width>
<height>28</height>
</rect>
@@ -341,7 +471,7 @@
<property name="geometry">
<rect>
<x>10</x>
<y>280</y>
<y>290</y>
<width>241</width>
<height>51</height>
</rect>
@@ -392,86 +522,6 @@
</layout>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_5">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>241</width>
<height>101</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>8</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="title">
<string>Peak Detection Config</string>
</property>
<widget class="QWidget" name="formLayoutWidget_5">
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>221</width>
<height>76</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout_5">
<item row="0" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Min peak height</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QDoubleSpinBox" name="spin_min_peakheight">
<property name="decimals">
<number>6</number>
</property>
<property name="value">
<double>0.000400000000000</double>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Min peak prominence</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QDoubleSpinBox" name="spin_min_peakprominence">
<property name="decimals">
<number>6</number>
</property>
<property name="value">
<double>0.001200000000000</double>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Moving average size</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QSpinBox" name="spin_moving_average_denom">
<property name="value">
<number>20</number>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
@@ -479,7 +529,7 @@
<x>0</x>
<y>0</y>
<width>1091</width>
<height>26</height>
<height>21</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">