Skip to content

Commit

Permalink
Format black
Browse files Browse the repository at this point in the history
  • Loading branch information
pyiron-runner committed May 16, 2023
1 parent 0ffe468 commit c1b3c41
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ironflow/nodes/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ class Select_Node(DataNode):
color = "#aabb44"

def update_event(self, inp=-1):
self.outputs.ports.item.dtype.valid_classes = \
[type(self.inputs.values.array[self.inputs.values.i])]
self.outputs.ports.item.dtype.valid_classes = [
type(self.inputs.values.array[self.inputs.values.i])
]
super().update_event(inp=inp)

def node_function(self, array, i, **kwargs) -> dict:
Expand Down Expand Up @@ -56,10 +57,11 @@ def update_event(self, inp=-1):
self.outputs.ports.sliced.dtype = dtypes.List(
valid_classes=list(
set(
type(obj) for obj in self._slice(
type(obj)
for obj in self._slice(
self.inputs.values.array,
self.inputs.values.i,
self.inputs.values.j
self.inputs.values.j,
)
)
)
Expand Down

0 comments on commit c1b3c41

Please sign in to comment.