Skip to content

Commit

Permalink
abandon custom array
Browse files Browse the repository at this point in the history
No time to work on this. Jupyter notebook with antarray module should work for me
  • Loading branch information
rookiepeng committed Jun 17, 2019
1 parent 370f2d2 commit 9bac59b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 212 deletions.
23 changes: 0 additions & 23 deletions arrayanalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,29 +139,6 @@ def init_ui(self):
self.ui.spinBox_polarMinAmp.setVisible(False)
self.ui.horizontalSlider_polarMinAmp.setVisible(False)

self.ui.tb_array.setColumnCount(4)
# self.ui.tb_array.setRowCount(1)
self.table_header = self.ui.tb_array.horizontalHeader()
self.table_header.setSectionResizeMode(
0, QtWidgets.QHeaderView.Stretch)
self.table_header.setSectionResizeMode(
1, QtWidgets.QHeaderView.Stretch)
self.table_header.setSectionResizeMode(
2, QtWidgets.QHeaderView.Stretch)
self.table_header.setSectionResizeMode(
3, QtWidgets.QHeaderView.Stretch)
# Stretch

self.ui.tb_array.setHorizontalHeaderLabels(['x', 'y', 'Amp', 'Phs'])

rowPosition = self.ui.tb_array.rowCount()
self.ui.tb_array.insertRow(rowPosition)

self.ui.tb_array.setItem(rowPosition, 0, QtGui.QTableWidgetItem("0"))
self.ui.tb_array.setItem(rowPosition, 1, QtGui.QTableWidgetItem("0"))
self.ui.tb_array.setItem(rowPosition, 2, QtGui.QTableWidgetItem("1"))
self.ui.tb_array.setItem(rowPosition, 3, QtGui.QTableWidgetItem("0"))

self.ui.actionQuit.triggered.connect(QtWidgets.qApp.quit)

def init_figure(self):
Expand Down
190 changes: 1 addition & 189 deletions ui_array_analysis.ui
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<bool>true</bool>
</property>
<property name="currentIndex">
<number>1</number>
<number>0</number>
</property>
<property name="tabsClosable">
<bool>false</bool>
Expand Down Expand Up @@ -1042,191 +1042,6 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_3">
<attribute name="title">
<string>Custom Array</string>
</attribute>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>GroupBox</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QTableWidget" name="tb_array"/>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_9">
<property name="spacing">
<number>12</number>
</property>
<item>
<spacer name="horizontalSpacer_6">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_2">
<property name="maximumSize">
<size>
<width>30</width>
<height>23</height>
</size>
</property>
<property name="text">
<string>+</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>23</height>
</size>
</property>
<property name="text">
<string>-</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>GroupBox</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QComboBox" name="comboBox"/>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox"/>
</item>
</layout>
</item>
<item>
<widget class="QSlider" name="horizontalSlider">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_2"/>
</item>
</layout>
</item>
<item>
<widget class="QSlider" name="horizontalSlider_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="sizeIncrement">
<size>
<width>1</width>
<height>0</height>
</size>
</property>
<property name="title">
<string>GroupBox</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<layout class="QVBoxLayout" name="verticalLayout_2"/>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
Expand All @@ -1245,7 +1060,6 @@
<string>File</string>
</property>
<addaction name="actionSave_array_configurations"/>
<addaction name="actionImport_array_config"/>
<addaction name="separator"/>
<addaction name="actionQuit"/>
</widget>
Expand All @@ -1262,8 +1076,6 @@
<string>Edit</string>
</property>
<addaction name="actionReset_standard_array"/>
<addaction name="separator"/>
<addaction name="actionClear"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuEdit"/>
Expand Down

0 comments on commit 9bac59b

Please sign in to comment.