Commit 518dea63 authored by Thomas Vincent's avatar Thomas Vincent
Browse files

Clean-up useless if __name__ == "__main__"

parent 5cf6d933
......@@ -122,7 +122,3 @@ class CentroidPlotter(Plotter):
# plots[2].addXMarker(positions.qz[index], legend='center of mass')
# plots[2].setGraphTitle('QZ center of mass')
#
if __name__ == '__main__':
pass
......@@ -196,6 +196,3 @@ class GaussianPlotter(Plotter):
def getPlotTitle(self):
return 'Gaussian'
if __name__ == '__main__':
pass
......@@ -40,7 +40,3 @@ class Plotter(object):
def getPlotTitle(self):
raise NotImplementedError('Not implemented')
if __name__ == '__main__':
pass
......@@ -158,7 +158,3 @@ class SilxPlotter(Plotter):
def getPlotTitle(self):
return 'Silx Gaussian Fit'
if __name__ == '__main__':
pass
......@@ -57,7 +57,3 @@ def grabWidget(widget):
else:
pixmap = widget.grab()
return pixmap
if __name__ == '__main__':
pass
......@@ -385,12 +385,3 @@ class XsocsGui(Qt.QMainWindow):
self.__setupProject(projectFile=projectFile)
return True
# ####################################################################
# ####################################################################
# ####################################################################
if __name__ == '__main__':
pass
......@@ -1214,7 +1214,3 @@ class Node(object):
update this node's column data, or False to ignore the event.
"""
return True, event
if __name__ == '__main__':
pass
......@@ -423,6 +423,3 @@ class ItemDelegate(Qt.QStyledItemDelegate):
klass.paint(painter, option, index)):
return
super(ItemDelegate, self).paint(painter, option, index)
if __name__ == '__main__':
pass
......@@ -408,6 +408,3 @@ class FitWidget(Qt.QWidget):
self.__fitter = None
self.sigProcessDone.emit(self.__outputFile)
if __name__ == '__main__':
pass
......@@ -1242,7 +1242,3 @@ class MergeWidget(Qt.QDialog):
self.__output['prefix'] = prefix
self.__prefixEdit.setText(prefix)
if __name__ == '__main__':
pass
......@@ -903,7 +903,3 @@ class _ConversionProcessDialog(Qt.QDialog):
status = property(lambda self: 0 if self.__aborted else 1)
""" Status of the process. """
if __name__ == '__main__':
pass
......@@ -107,6 +107,3 @@ class FitItem(ProjectItem):
fitFile = self.fitFile
if fitFile is None:
return
if __name__ == '__main__':
pass
......@@ -314,7 +314,3 @@ class H5DatasetNode(H5Base):
self._setDataInternal(ModelColumns.ValueColumn,
text,
role=Qt.Qt.DisplayRole)
if __name__ == '__main__':
pass
......@@ -294,7 +294,3 @@ class ProgressNode(Node):
else:
text = '?'
return ModelDataList(text, None, Qt.Qt.DisplayRole)
if __name__ == '__main__':
pass
......@@ -301,7 +301,3 @@ class ProjectItem(XsocsH5Base):
:return:
"""
pass
if __name__ == '__main__':
pass
......@@ -719,7 +719,3 @@ class FitItemNode(ProjectNode):
.triggered.connect(lambda checked: self.delete(view))
return qMenu
if __name__ == '__main__':
pass
......@@ -125,6 +125,3 @@ class QSpaceItem(ProjectItem):
FitGroup(self.filename,
self.path + '/' + QSpaceItem.FitGroupPath,
mode=self.mode)
if __name__ == '__main__':
pass
......@@ -133,7 +133,3 @@ class ShiftItem(ProjectItem):
shiftFile = self.shiftFile
if shiftFile is None:
return
if __name__ == '__main__':
pass
......@@ -130,7 +130,3 @@ class XsocsProject(ProjectItem):
return ShiftGroup(self.filename,
self.ShiftGroupPath,
mode=mode)
if __name__ == '__main__':
pass
......@@ -886,7 +886,3 @@ class PolygonRoiItem(RoiItemBase):
self._yData[idx] = y
self._xData[-1] = self._xData[0]
self._yData[-1] = self._yData[0]
if __name__ == '__main__':
pass
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment