Browse Source

Codestyle fixes

Jaime van Kessel 9 years ago
parent
commit
54e5020975
2 changed files with 7 additions and 7 deletions
  1. 3 3
      plugins/ImageReader/ImageReader.py
  2. 4 4
      plugins/ImageReader/ImageReaderUI.py

+ 3 - 3
plugins/ImageReader/ImageReader.py

@@ -33,8 +33,8 @@ class ImageReader(MeshReader):
         depth = img.height()
 
         largest = max(width, depth)
-        width = width / largest * self._ui.defaultWidth
-        depth = depth / largest * self._ui.defaultDepth
+        width = width / largest * self._ui.default_width
+        depth = depth / largest * self._ui.default_depth
 
         self._ui.setWidthAndDepth(width, depth)
         self._ui.showConfigUI()
@@ -112,7 +112,7 @@ class ImageReader(MeshReader):
             height_data = 1 - height_data
 
         for i in range(0, blur_iterations):
-            copy = numpy.pad(height_data, ((1, 1), (1, 1)), mode='edge')
+            copy = numpy.pad(height_data, ((1, 1), (1, 1)), mode= "edge")
 
             height_data += copy[1:-1, 2:]
             height_data += copy[1:-1, :-2]

+ 4 - 4
plugins/ImageReader/ImageReaderUI.py

@@ -24,12 +24,12 @@ class ImageReaderUI(QObject):
         self._ui_view = None
         self.show_config_ui_trigger.connect(self._actualShowConfigUI)
 
-        self.defaultWidth = 120
-        self.defaultDepth = 120
+        self.default_width = 120
+        self.default_depth = 120
 
         self._aspect = 1
-        self._width = self.defaultWidth
-        self._depth = self.defaultDepth
+        self._width = self.default_width
+        self._depth = self.default_depth
 
         self.base_height = 1
         self.peak_height = 10