This commit is contained in:
parent
5fbba2a585
commit
55581d4063
|
@ -215,9 +215,6 @@ class Solder(QtCore.QObject):
|
||||||
dur_x, dur_y = self.check_duration_constraints(temp_level, used)
|
dur_x, dur_y = self.check_duration_constraints(temp_level, used)
|
||||||
rate_x, rate_y = self.check_rate_constraints(temp_level, used)
|
rate_x, rate_y = self.check_rate_constraints(temp_level, used)
|
||||||
|
|
||||||
print dur_x, dur_y
|
|
||||||
print rate_x, rate_y
|
|
||||||
print
|
|
||||||
if len(dur_x) > 0:
|
if len(dur_x) > 0:
|
||||||
x.extend(dur_x)
|
x.extend(dur_x)
|
||||||
y.extend(dur_y)
|
y.extend(dur_y)
|
||||||
|
@ -482,7 +479,6 @@ class TempLevelModel(QtCore.QAbstractTableModel):
|
||||||
assert isinstance(temp_levels, list)
|
assert isinstance(temp_levels, list)
|
||||||
self.temp_levels = temp_levels
|
self.temp_levels = temp_levels
|
||||||
self.reset()
|
self.reset()
|
||||||
print self.setTempLevels
|
|
||||||
|
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
|
@ -836,7 +832,6 @@ class DurationConstraintWidget(ConstraintWidget):
|
||||||
ix = self.constraint_model.index(0, 0)
|
ix = self.constraint_model.index(0, 0)
|
||||||
self._constraint_selected(ix)
|
self._constraint_selected(ix)
|
||||||
self.constraint_view.setCurrentIndex(ix)
|
self.constraint_view.setCurrentIndex(ix)
|
||||||
print self._set_data
|
|
||||||
|
|
||||||
def _constraint_selected(self, index):
|
def _constraint_selected(self, index):
|
||||||
if index.isValid():
|
if index.isValid():
|
||||||
|
@ -848,7 +843,7 @@ class DurationConstraintWidget(ConstraintWidget):
|
||||||
self.spinbox_block = True
|
self.spinbox_block = True
|
||||||
self.selected_temp_levels.setTempLevels(list())
|
self.selected_temp_levels.setTempLevels(list())
|
||||||
self.controls.value.setValue(0)
|
self.controls.value.setValue(0)
|
||||||
print self._constraint_selected
|
|
||||||
|
|
||||||
|
|
||||||
class OvenControlsWidget(QtGui.QWidget):
|
class OvenControlsWidget(QtGui.QWidget):
|
||||||
|
@ -1201,7 +1196,7 @@ class ApplicationWindow(QtGui.QMainWindow):
|
||||||
x, y, xmax, ymax, duration_points, rate_points = solder.calc_profile()
|
x, y, xmax, ymax, duration_points, rate_points = solder.calc_profile()
|
||||||
x_list.append(x)
|
x_list.append(x)
|
||||||
y_list.append(y)
|
y_list.append(y)
|
||||||
print "packet", repr(create_profile_packet(x, y))
|
#print "packet", repr(create_profile_packet(x, y))
|
||||||
|
|
||||||
create_profile_header(x_list, y_list)
|
create_profile_header(x_list, y_list)
|
||||||
|
|
||||||
|
@ -1209,21 +1204,17 @@ class ApplicationWindow(QtGui.QMainWindow):
|
||||||
if index.isValid():
|
if index.isValid():
|
||||||
solder = self.solder_widget.solder_model.listdata[index.row()]
|
solder = self.solder_widget.solder_model.listdata[index.row()]
|
||||||
self.temp_level_widget.setData(solder)
|
self.temp_level_widget.setData(solder)
|
||||||
print "pre duration"
|
|
||||||
self.duration_widget.setData(solder)
|
self.duration_widget.setData(solder)
|
||||||
print "post duration"
|
|
||||||
self.rate_widget.setData(solder)
|
self.rate_widget.setData(solder)
|
||||||
self.plotter.setData(solder)
|
self.plotter.setData(solder)
|
||||||
self.controls_widget.temp_level_widget.setData(solder)
|
self.controls_widget.temp_level_widget.setData(solder)
|
||||||
solder.log_message.connect(self.profile_log.setPlainText)
|
solder.log_message.connect(self.profile_log.setPlainText)
|
||||||
|
|
||||||
def open_controls_view(self):
|
def open_controls_view(self):
|
||||||
print self.open_controls_view
|
|
||||||
self.controls_widget.show()
|
self.controls_widget.show()
|
||||||
self.settings_widget.hide()
|
self.settings_widget.hide()
|
||||||
|
|
||||||
def open_profile_view(self):
|
def open_profile_view(self):
|
||||||
print self.open_profile_view
|
|
||||||
self.controls_widget.hide()
|
self.controls_widget.hide()
|
||||||
self.settings_widget.show()
|
self.settings_widget.show()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue