Skip to content

Commit

Permalink
Merge pull request #156 from /issues/104
Browse files Browse the repository at this point in the history
Issues/104
  • Loading branch information
LemurPwned authored Aug 19, 2018
2 parents 642bccf + 1a6f448 commit 6ad6343
Show file tree
Hide file tree
Showing 56 changed files with 2,246 additions and 1,594 deletions.
202 changes: 0 additions & 202 deletions ColorPolicy.py

This file was deleted.

17 changes: 13 additions & 4 deletions AnimatedWidget.py → Widgets/AnimatedWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,19 @@ def set_i(self, value, trigger=False, record=False):

def receivedOptions(self):
self.normalize = self.options[0]
self.averaging = int(self.options[1])
self.subsampling = int(self.options[1])
if self.subsampling == 0:
self.subsampling = 1
self.layer = self.options[2]
self.scale = int(self.options[3])
self.vector_set = self.options[4]
self.decimate = int(self.options[5])
self.disableDot = self.options[6]
self.hyperContrast = self.options[7]
self.color_policy_type = self.options[5]
self.hyperContrast = self.options[6]
try:
# only arrows have resolution
self.resolution = self.options[7]
except IndexError:
pass

def initial_transformation(self):
pass
2 changes: 1 addition & 1 deletion Widgets/Structure3DScatterWidget.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np
import pyqtgraph.opengl as gl
from AnimatedWidget import AnimatedWidget
from Widgets.AnimatedWidget import AnimatedWidget

class Structure3DScatterWidget(gl.GLViewWidget, AnimatedWidget):
def __init__(self):
Expand Down
6 changes: 6 additions & 0 deletions WidgetHandler.py → Widgets/WidgetHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ def removeWidget(self, widget):
self.deleteWidget()
self._layout.removeWidget(widget)
except:
return
"""
leaving for the sake of documenatation
this execption is not actually exception
but a RuntimeWarning
"""
raise ValueError("Layout is not proper or argument is not a widget")

def addToolBar(self, toolbar):
Expand Down
Loading

0 comments on commit 6ad6343

Please sign in to comment.