forked from IPKM/nmreval
367 lines
18 KiB
Plaintext
367 lines
18 KiB
Plaintext
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<ui version="4.0">
|
||
|
<class>CalcDialog</class>
|
||
|
<widget class="QDialog" name="CalcDialog">
|
||
|
<property name="geometry">
|
||
|
<rect>
|
||
|
<x>0</x>
|
||
|
<y>0</y>
|
||
|
<width>895</width>
|
||
|
<height>547</height>
|
||
|
</rect>
|
||
|
</property>
|
||
|
<property name="windowTitle">
|
||
|
<string>Evaluate stuff</string>
|
||
|
</property>
|
||
|
<layout class="QGridLayout" name="gridLayout">
|
||
|
<item row="0" column="3">
|
||
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||
|
<property name="topMargin">
|
||
|
<number>0</number>
|
||
|
</property>
|
||
|
<item>
|
||
|
<widget class="QTabWidget" name="tabWidget">
|
||
|
<property name="currentIndex">
|
||
|
<number>0</number>
|
||
|
</property>
|
||
|
<widget class="QWidget" name="tab">
|
||
|
<attribute name="title">
|
||
|
<string>Parameter</string>
|
||
|
</attribute>
|
||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||
|
<property name="spacing">
|
||
|
<number>0</number>
|
||
|
</property>
|
||
|
<property name="margin">
|
||
|
<number>0</number>
|
||
|
</property>
|
||
|
<item>
|
||
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||
|
<property name="spacing">
|
||
|
<number>0</number>
|
||
|
</property>
|
||
|
<property name="topMargin">
|
||
|
<number>0</number>
|
||
|
</property>
|
||
|
<item>
|
||
|
<widget class="QTextEdit" name="textEdit">
|
||
|
<property name="enabled">
|
||
|
<bool>true</bool>
|
||
|
</property>
|
||
|
<property name="sizePolicy">
|
||
|
<sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding">
|
||
|
<horstretch>0</horstretch>
|
||
|
<verstretch>0</verstretch>
|
||
|
</sizepolicy>
|
||
|
</property>
|
||
|
<property name="frameShape">
|
||
|
<enum>QFrame::NoFrame</enum>
|
||
|
</property>
|
||
|
<property name="frameShadow">
|
||
|
<enum>QFrame::Plain</enum>
|
||
|
</property>
|
||
|
<property name="autoFormatting">
|
||
|
<set>QTextEdit::AutoNone</set>
|
||
|
</property>
|
||
|
<property name="html">
|
||
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||
|
p, li { white-space: pre-wrap; }
|
||
|
</style></head><body style=" font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;">
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- X, y, and Δy values </p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- Values of dataset on position <span style=" font-style:italic;">i</span> in list</p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> (<span style=" font-style:italic;">s[i].x</span> and <span style=" font-style:italic;">x</span> return the same values)</p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- Numpy functions</p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- If available, fit parameters</p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> (see namespace for available parameters)</p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- Fit functions:</p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> (meaning of p and extra arguments </p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> depend on function)</p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- Constants:</p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> (nuclei are accessed by <span style=" font-style:italic;">const['gamma']['1H']</span>)</p></body></html></string>
|
||
|
</property>
|
||
|
<property name="textInteractionFlags">
|
||
|
<set>Qt::NoTextInteraction</set>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QTextEdit" name="textEdit_3">
|
||
|
<property name="sizePolicy">
|
||
|
<sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding">
|
||
|
<horstretch>0</horstretch>
|
||
|
<verstretch>0</verstretch>
|
||
|
</sizepolicy>
|
||
|
</property>
|
||
|
<property name="frameShape">
|
||
|
<enum>QFrame::NoFrame</enum>
|
||
|
</property>
|
||
|
<property name="frameShadow">
|
||
|
<enum>QFrame::Plain</enum>
|
||
|
</property>
|
||
|
<property name="html">
|
||
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||
|
p, li { white-space: pre-wrap; }
|
||
|
</style></head><body style=" font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;">
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">x y y_err</span></p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">s[i].x s[i+2].y</span> <span style=" font-style:italic;">s[i-1].y_err</span></p>
|
||
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-style:italic;"><br /></p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">np.function</span></p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">fit['NAME']</span></p>
|
||
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-style:italic;"><br /></p>
|
||
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">Name.func(p, x, *args) </span></p>
|
||
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-style:italic;"><br /></p>
|
||
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">const['NAME']</span></p></body></html></string>
|
||
|
</property>
|
||
|
<property name="textInteractionFlags">
|
||
|
<set>Qt::NoTextInteraction</set>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</widget>
|
||
|
<widget class="QWidget" name="tab_2">
|
||
|
<attribute name="title">
|
||
|
<string>Example</string>
|
||
|
</attribute>
|
||
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||
|
<property name="spacing">
|
||
|
<number>0</number>
|
||
|
</property>
|
||
|
<property name="margin">
|
||
|
<number>0</number>
|
||
|
</property>
|
||
|
<item>
|
||
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||
|
<property name="spacing">
|
||
|
<number>0</number>
|
||
|
</property>
|
||
|
<property name="topMargin">
|
||
|
<number>0</number>
|
||
|
</property>
|
||
|
<item>
|
||
|
<widget class="QTextEdit" name="textEdit_2">
|
||
|
<property name="enabled">
|
||
|
<bool>true</bool>
|
||
|
</property>
|
||
|
<property name="frameShape">
|
||
|
<enum>QFrame::NoFrame</enum>
|
||
|
</property>
|
||
|
<property name="frameShadow">
|
||
|
<enum>QFrame::Plain</enum>
|
||
|
</property>
|
||
|
<property name="html">
|
||
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||
|
p, li { white-space: pre-wrap; }
|
||
|
</style></head><body style=" font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;">
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Substract neighbouring datasets: </p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Normalize on fit value M<span style=" vertical-align:sub;">∞</span>:</p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Logscale x:</p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Division by exponential decay:</p>
|
||
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html></string>
|
||
|
</property>
|
||
|
<property name="textInteractionFlags">
|
||
|
<set>Qt::NoTextInteraction</set>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QTextEdit" name="textEdit_4">
|
||
|
<property name="frameShape">
|
||
|
<enum>QFrame::NoFrame</enum>
|
||
|
</property>
|
||
|
<property name="frameShadow">
|
||
|
<enum>QFrame::Plain</enum>
|
||
|
</property>
|
||
|
<property name="readOnly">
|
||
|
<bool>true</bool>
|
||
|
</property>
|
||
|
<property name="html">
|
||
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||
|
p, li { white-space: pre-wrap; }
|
||
|
</style></head><body style=" font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;">
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">y = y-s[i+1].y</span></p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">y = y/fit['M_infty']</span></p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">x = np.log10(x)</span></p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">y = y/np.exp(-x/10)</span></p>
|
||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">y = y/Exponential_Decay.func([0, 1, 10, 1], x)</span></p></body></html></string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</widget>
|
||
|
<widget class="QWidget" name="tab_3">
|
||
|
<attribute name="title">
|
||
|
<string>Namespace</string>
|
||
|
</attribute>
|
||
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||
|
<property name="spacing">
|
||
|
<number>0</number>
|
||
|
</property>
|
||
|
<property name="margin">
|
||
|
<number>0</number>
|
||
|
</property>
|
||
|
<item>
|
||
|
<widget class="QTreeWidget" name="treeWidget">
|
||
|
<property name="sizePolicy">
|
||
|
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||
|
<horstretch>0</horstretch>
|
||
|
<verstretch>0</verstretch>
|
||
|
</sizepolicy>
|
||
|
</property>
|
||
|
<property name="frameShape">
|
||
|
<enum>QFrame::NoFrame</enum>
|
||
|
</property>
|
||
|
<property name="frameShadow">
|
||
|
<enum>QFrame::Plain</enum>
|
||
|
</property>
|
||
|
<property name="editTriggers">
|
||
|
<set>QAbstractItemView::NoEditTriggers</set>
|
||
|
</property>
|
||
|
<property name="selectionMode">
|
||
|
<enum>QAbstractItemView::NoSelection</enum>
|
||
|
</property>
|
||
|
<attribute name="headerVisible">
|
||
|
<bool>false</bool>
|
||
|
</attribute>
|
||
|
<column>
|
||
|
<property name="text">
|
||
|
<string>Namespace</string>
|
||
|
</property>
|
||
|
</column>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</widget>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QLabel" name="label">
|
||
|
<property name="font">
|
||
|
<font>
|
||
|
<weight>75</weight>
|
||
|
<bold>true</bold>
|
||
|
</font>
|
||
|
</property>
|
||
|
<property name="text">
|
||
|
<string>Expressions are evaluated line by line and change previous values</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QPlainTextEdit" name="calc_edit">
|
||
|
<property name="sizePolicy">
|
||
|
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||
|
<horstretch>0</horstretch>
|
||
|
<verstretch>0</verstretch>
|
||
|
</sizepolicy>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</item>
|
||
|
<item row="0" column="1">
|
||
|
<layout class="QVBoxLayout" name="verticalLayout_5">
|
||
|
<property name="spacing">
|
||
|
<number>0</number>
|
||
|
</property>
|
||
|
<item>
|
||
|
<widget class="QLabel" name="label_2">
|
||
|
<property name="text">
|
||
|
<string><html><head/><body><p>Select sets for evaluation<br>(no selection = all visible):</p></body></html></string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QListWidget" name="listWidget">
|
||
|
<property name="sizePolicy">
|
||
|
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||
|
<horstretch>0</horstretch>
|
||
|
<verstretch>0</verstretch>
|
||
|
</sizepolicy>
|
||
|
</property>
|
||
|
<property name="editTriggers">
|
||
|
<set>QAbstractItemView::NoEditTriggers</set>
|
||
|
</property>
|
||
|
<property name="selectionMode">
|
||
|
<enum>QAbstractItemView::MultiSelection</enum>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item>
|
||
|
<widget class="QCheckBox" name="overwrite_checkbox">
|
||
|
<property name="layoutDirection">
|
||
|
<enum>Qt::LeftToRight</enum>
|
||
|
</property>
|
||
|
<property name="text">
|
||
|
<string>Overwrite values?</string>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</item>
|
||
|
<item row="1" column="3">
|
||
|
<widget class="QDialogButtonBox" name="buttonBox">
|
||
|
<property name="orientation">
|
||
|
<enum>Qt::Horizontal</enum>
|
||
|
</property>
|
||
|
<property name="standardButtons">
|
||
|
<set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
<item row="0" column="2">
|
||
|
<widget class="Line" name="line">
|
||
|
<property name="orientation">
|
||
|
<enum>Qt::Vertical</enum>
|
||
|
</property>
|
||
|
</widget>
|
||
|
</item>
|
||
|
</layout>
|
||
|
</widget>
|
||
|
<resources/>
|
||
|
<connections>
|
||
|
<connection>
|
||
|
<sender>buttonBox</sender>
|
||
|
<signal>accepted()</signal>
|
||
|
<receiver>CalcDialog</receiver>
|
||
|
<slot>accept()</slot>
|
||
|
<hints>
|
||
|
<hint type="sourcelabel">
|
||
|
<x>248</x>
|
||
|
<y>254</y>
|
||
|
</hint>
|
||
|
<hint type="destinationlabel">
|
||
|
<x>157</x>
|
||
|
<y>274</y>
|
||
|
</hint>
|
||
|
</hints>
|
||
|
</connection>
|
||
|
<connection>
|
||
|
<sender>buttonBox</sender>
|
||
|
<signal>rejected()</signal>
|
||
|
<receiver>CalcDialog</receiver>
|
||
|
<slot>reject()</slot>
|
||
|
<hints>
|
||
|
<hint type="sourcelabel">
|
||
|
<x>316</x>
|
||
|
<y>260</y>
|
||
|
</hint>
|
||
|
<hint type="destinationlabel">
|
||
|
<x>286</x>
|
||
|
<y>274</y>
|
||
|
</hint>
|
||
|
</hints>
|
||
|
</connection>
|
||
|
</connections>
|
||
|
</ui>
|