Skip to content

Commit

Permalink
Merge pull request #18 from gpilab/develop
Browse files Browse the repository at this point in the history
Bug Fixes
  • Loading branch information
borupdaniel authored Sep 4, 2019
2 parents 74f9c1d + 93a5051 commit cddf459
Show file tree
Hide file tree
Showing 16 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions display/GPI/CrossSection_GPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class MatplotDisplay2(gpi.GenericWidgetGroup):
valueChanged = gpi.Signal()

def __init__(self, title, parent=None):
super(MatplotDisplay2, self).__init__(title, parent)
super().__init__(title, parent)

#self.data = self.get_data2()
self._data = None
Expand Down Expand Up @@ -137,7 +137,7 @@ class WindowLevel(gpi.GenericWidgetGroup):
valueChanged = gpi.Signal()

def __init__(self, title, parent=None):
super(WindowLevel, self).__init__(title, parent)
super().__init__(title, parent)
self.sl = gpi.BasicCWFCSliders()
self.sl.valueChanged.connect(self.valueChanged)
self.pb = gpi.BasicPushButton()
Expand Down
2 changes: 1 addition & 1 deletion display/GPI/DataQuery_GPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class DataSliders(gpi.GenericWidgetGroup):
valueChanged = gpi.Signal()

def __init__(self, title, parent=None):
super(DataSliders, self).__init__(title, parent)
super().__init__(title, parent)
self.sl = gpi.BasicCWFCSliders()
self.sl.valueChanged.connect(self.valueChanged)
# at least one button
Expand Down
4 changes: 2 additions & 2 deletions display/GPI/GLViewer_GPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class GPIGLWidget(QtOpenGL.QGLWidget):
zRotationChanged = gpi.Signal(int)

def __init__(self, parent=None):
super(GPIGLWidget, self).__init__(parent)
super().__init__(parent)

self.xRot = 0
self.yRot = 0
Expand Down Expand Up @@ -437,7 +437,7 @@ def __init__(self, title, parent=None):
if QtOpenGL is None:
raise ImportError("QtOpenGL not available in the current Qt "
"package ({})".format(QT_API_NAME))
super(OpenGLWindow, self).__init__(title, parent)
super().__init__(title, parent)
f = QtOpenGL.QGLFormat()
f.setAccum(True)
f.setDoubleBuffer(True)
Expand Down
2 changes: 1 addition & 1 deletion display/GPI/ImageDisplay_GPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class WindowLevel(gpi.GenericWidgetGroup):
valueChanged = gpi.Signal()

def __init__(self, title, parent=None):
super(WindowLevel, self).__init__(title, parent)
super().__init__(title, parent)
self.sl = gpi.BasicCWFCSliders()
self.sl.valueChanged.connect(self.valueChanged)
self.pb = gpi.BasicPushButton()
Expand Down
2 changes: 1 addition & 1 deletion display/GPI/ImageRate_GPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ComboBox_GROUP(gpi.GenericWidgetGroup):
valueChanged = gpi.Signal()

def __init__(self, title, parent=None):
super(ComboBox_GROUP, self).__init__(title, parent)
super().__init__(title, parent)

self._val = {}
self._val['image_quality_left'] = 0
Expand Down
8 changes: 4 additions & 4 deletions display/GPI/Matplotlib_GPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@
class MainWin_close(QtWidgets.QMainWindow):
window_closed = gpi.Signal()
def __init__(self):
super(MainWin_close, self).__init__()
super().__init__()
self._isActive = True

def closeEvent(self, event):
super(MainWin_close, self).closeEvent(event)
super().closeEvent(event)
self.window_closed.emit()
self._isActive = False

Expand Down Expand Up @@ -87,7 +87,7 @@ class NavbarTools(NavigationToolbar):
)

def __init__(self, canvas, parent):
super(NavbarTools, self).__init__(canvas, parent)
super().__init__(canvas, parent)

def _init_toolbar(self):
self.basedir = os.path.join(matplotlib.rcParams[ 'datapath' ],'images')
Expand Down Expand Up @@ -284,7 +284,7 @@ class MatplotDisplay(gpi.GenericWidgetGroup):
valueChanged = gpi.Signal()

def __init__(self, title, parent=None):
super(MatplotDisplay, self).__init__(title, parent)
super().__init__(title, parent)

# gpi interface
self._collapsables = []
Expand Down
2 changes: 1 addition & 1 deletion display/GPI/dictionquery_GPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class ReduceSliders(gpi.GenericWidgetGroup):
valueChanged = gpi.Signal()

def __init__(self, title, parent=None):
super(ReduceSliders, self).__init__(title, parent)
super().__init__(title, parent)
self.sl = gpi.BasicCWFCSliders()
self.sl.valueChanged.connect(self.valueChanged)
# at least one button
Expand Down
2 changes: 1 addition & 1 deletion generators/GPI/Shapes_GPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SHAPES_GROUP(gpi.GenericWidgetGroup):
valueChanged = gpi.Signal()

def __init__(self, title, parent=None):
super(SHAPES_GROUP, self).__init__(title, parent)
super().__init__(title, parent)

self._val = {}
self._val['size'] = 1
Expand Down
2 changes: 1 addition & 1 deletion math/GPI/FFTW_GPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class FFTW_GROUP(gpi.GenericWidgetGroup):
valueChanged = gpi.Signal()

def __init__(self, title, parent=None):
super(FFTW_GROUP, self).__init__(title, parent)
super().__init__(title, parent)

self._val = {}
self._val['compute'] = False
Expand Down
2 changes: 1 addition & 1 deletion math/GPI/FFT_NUMPY_GPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class FFTW_GROUP(gpi.GenericWidgetGroup):
valueChanged = gpi.Signal()

def __init__(self, title, parent=None):
super(FFTW_GROUP, self).__init__(title, parent)
super().__init__(title, parent)

self._val = {}
self._val['compute'] = False
Expand Down
2 changes: 1 addition & 1 deletion math/GPI/Interpolate_GPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Interpolate_GROUP(gpi.GenericWidgetGroup):
valueChanged = gpi.Signal()

def __init__(self, title, parent=None):
super(Interpolate_GROUP, self).__init__(title, parent)
super().__init__(title, parent)

# Widgets
self._val = {}
Expand Down
2 changes: 1 addition & 1 deletion math/GPI/Zeropad_GPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class FFTW_GROUP(gpi.GenericWidgetGroup):
valueChanged = gpi.Signal()

def __init__(self, title, parent=None):
super(FFTW_GROUP, self).__init__(title, parent)
super().__init__(title, parent)

self._val = {}
self._val['length'] = 1
Expand Down
2 changes: 1 addition & 1 deletion shapers/GPI/Flip_GPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class NonExclusivePushButtons2(gpi.NonExclusivePushButtons):
valueChanged = gpi.Signal()

def __init__(self, title, parent=None):
super(NonExclusivePushButtons2, self).__init__(title, parent)
super().__init__(title, parent)

# overwrite set_val
def set_val(self, value):
Expand Down
4 changes: 2 additions & 2 deletions shapers/GPI/Reduce_GPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ReduceSliders(gpi.GenericWidgetGroup):
valueChanged = gpi.Signal()

def __init__(self, title, parent=None):
super(ReduceSliders, self).__init__(title, parent)
super().__init__(title, parent)
self.sl = gpi.BasicCWFCSliders()
self.sl.valueChanged.connect(self.valueChanged)
# at least one button
Expand Down Expand Up @@ -271,7 +271,7 @@ def compute(self):
xi.append(slice(w['floor']-1, w['ceiling']))

# apply indices to the data
out = data[xi]
out = data[tuple(xi)]

# update UI info
self.setAttr('I/O Info:', val="input: "+str(data.shape)
Expand Down
8 changes: 4 additions & 4 deletions shapers/GPI/Transpose_GPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class GPITabBar(QtWidgets.QTabBar):
currentChanged = gpi.Signal()

def __init__(self, parent=None):
super(GPITabBar, self).__init__(parent)
super().__init__(parent)
self._labels_at_press = None

def clearTabs(self):
Expand All @@ -59,10 +59,10 @@ def labels(self):

def mousePressEvent(self, event):
self._labels_at_press = self.labels()
super(GPITabBar, self).mousePressEvent(event)
super().mousePressEvent(event)

def mouseReleaseEvent(self, event):
super(GPITabBar, self).mouseReleaseEvent(event)
super().mouseReleaseEvent(event)
if self.labels() != self._labels_at_press:
self.currentChanged.emit()

Expand All @@ -71,7 +71,7 @@ class OrderButtons(gpi.GenericWidgetGroup):
valueChanged = gpi.Signal()

def __init__(self, title, parent=None):
super(OrderButtons, self).__init__(title, parent)
super().__init__(title, parent)

# at least one button
wdgLayout = QtWidgets.QGridLayout()
Expand Down
2 changes: 1 addition & 1 deletion spinSim/GPI/Spyn_GPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class SpynAxys(gpi.GenericWidgetGroup):
valueChanged = gpi.Signal()

def __init__(self, title, parent=None):
super(SpynAxys, self).__init__(title, parent)
super().__init__(title, parent)

self._val = {}
self._val['length'] = 1
Expand Down

0 comments on commit cddf459

Please sign in to comment.