diff options
author | Jaime van Kessel <nallath@gmail.com> | 2016-02-15 16:18:01 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2016-02-15 16:18:01 +0300 |
commit | 54e50209755ca5c59cdd37c823266097030f5100 (patch) | |
tree | 6333b9fe012daca4d5e476f656392ca62f69da32 /plugins/ImageReader | |
parent | a03f25636652a1b2163c57f18e0e164f07356798 (diff) |
Codestyle fixes
Diffstat (limited to 'plugins/ImageReader')
-rw-r--r-- | plugins/ImageReader/ImageReader.py | 6 | ||||
-rw-r--r-- | plugins/ImageReader/ImageReaderUI.py | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/plugins/ImageReader/ImageReader.py b/plugins/ImageReader/ImageReader.py index f0c49553e6..489459ec39 100644 --- a/plugins/ImageReader/ImageReader.py +++ b/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] diff --git a/plugins/ImageReader/ImageReaderUI.py b/plugins/ImageReader/ImageReaderUI.py index 8387e91173..68a0c8df09 100644 --- a/plugins/ImageReader/ImageReaderUI.py +++ b/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 |