Skip to content

Commit

Permalink
invoke format
Browse files Browse the repository at this point in the history
  • Loading branch information
Licini committed Mar 27, 2023
1 parent 550fa39 commit 88ae08f
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 18 deletions.
1 change: 0 additions & 1 deletion src/compas_view2/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ def __init__(
flow_view_size: Union[Tuple[int], List[int]] = None,
flow_auto_update: bool = True,
):

if version not in VERSIONS:
raise Exception("Only these versions are currently supported: {}".format(VERSIONS))

Expand Down
1 change: 0 additions & 1 deletion src/compas_view2/app/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def run(self):


class Ticker(QRunnable):

pool = QThreadPool()

def __init__(self, interval=1):
Expand Down
1 change: 0 additions & 1 deletion src/compas_view2/flow/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def Node(app, color: Union[Color, str, list, tuple] = "#0092D2", auto_update: bo
node_color = color.hex

def decorator(func):

signature = inspect.signature(func)

if auto_update is None:
Expand Down
5 changes: 0 additions & 5 deletions src/compas_view2/flow/values.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def IntegerNode(title: str = "Integer", default: int = 1, bounds: Tuple[float, f
bounds = bounds or (-(10**9), 10**9)

class IntegerNode(ValueNode):

title = _title

init_inputs = [
Expand Down Expand Up @@ -88,7 +87,6 @@ def FloatNode(title: str = "Float", default: float = 0.0, bounds: tuple = None)
bounds = bounds or (-(10**9), 10**9)

class FloatNode(ValueNode):

title = _title

init_inputs = [
Expand Down Expand Up @@ -124,7 +122,6 @@ def ChoiceNode(title: str = "Choice", default: str = None, items: List[str] = No
items = items or []

class ChoiceNode(ValueNode):

title = _title

init_inputs = [
Expand Down Expand Up @@ -156,7 +153,6 @@ def StringNode(title: str = "String", default: str = None) -> ValueNode:
_title = title

class StringNode(ValueNode):

title = _title

init_inputs = [
Expand Down Expand Up @@ -191,7 +187,6 @@ def VectorNode(
default = default or [0, 0, 0]

class VectorNode(ValueNode):

title = _title

init_inputs = [
Expand Down
1 change: 0 additions & 1 deletion src/compas_view2/flow/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def set_message(self, message=None):
self.message.setVisible(False)

def set_auto_update(self, _, value=None, update_node=True):

if self.pause_event:
return

Expand Down
1 change: 0 additions & 1 deletion src/compas_view2/forms/sceneform.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def map_objects(self, objects, parent=None):
self.map_objects(obj.children, item)

def show_properties(self, obj):

self.app.selector.select(obj, update=True)

propertyform = self.app.dock_slots.get("propertyform")
Expand Down
1 change: 0 additions & 1 deletion src/compas_view2/forms/treeform.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ def entries(self):
return list(map(lambda i: i.entry, self.items))

def map_entries(self, entries, parent=None):

# automatically convert dict to list of key, value pairs
if isinstance(entries, dict):
_entries = []
Expand Down
1 change: 0 additions & 1 deletion src/compas_view2/objects/collectionobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class CollectionObject(BufferObject):
"""Object for displaying COMPAS collection."""

def __init__(self, collection: Collection, **kwargs):

super().__init__(collection, **kwargs)

self._objects = []
Expand Down
1 change: 0 additions & 1 deletion src/compas_view2/objects/object.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ def __init__(
pointsize: int = 10,
opacity: float = 1.0,
):

self._data = data
self._app = app
self.name = name or str(self)
Expand Down
1 change: 0 additions & 1 deletion src/compas_view2/scene/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ def viewworld(self):
return asfortranarray(W.inverted(), dtype=float32)

def zoom_extents(self, objects: List[Object] = None):

objects = objects or self.view.objects.values()

extents = []
Expand Down
1 change: 0 additions & 1 deletion src/compas_view2/shapes/arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ def transform(self, transformation):
# ==============================================================================

if __name__ == "__main__":

import doctest

doctest.testmod()
1 change: 0 additions & 1 deletion src/compas_view2/ui/checkbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class Checkbox:
"""

def __init__(self, app, parent, *, text, action, checked=False):

box = QtWidgets.QWidget()
layout = QtWidgets.QHBoxLayout()
checkbox = QtWidgets.QCheckBox(text)
Expand Down
1 change: 0 additions & 1 deletion src/compas_view2/ui/radio.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class Radio:
"""

def __init__(self, app, parent, *, title, items, action):

box = QtWidgets.QGroupBox(title)
layout = QtWidgets.QVBoxLayout()
group = QtWidgets.QButtonGroup(app.window, exclusive=True)
Expand Down
1 change: 0 additions & 1 deletion src/compas_view2/ui/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class Select:
"""

def __init__(self, app, parent, *, items, action):

container = QtWidgets.QWidget()
layout = QtWidgets.QHBoxLayout()
combo = QtWidgets.QComboBox()
Expand Down

0 comments on commit 88ae08f

Please sign in to comment.