Skip to content

Commit 5d9446b

Browse files
committed
add numpy icon
1 parent c3f4f7a commit 5d9446b

File tree

6 files changed

+11
-12
lines changed

6 files changed

+11
-12
lines changed

example_auto_nodes/basic_nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self):
2222
# create node outputs.
2323
self.add_output('out A')
2424
self.add_output('out B')
25-
self.set_icon("example_auto_nodes/pear.png")
25+
self.set_icon("example_auto_nodes/icons/pear.png")
2626

2727

2828
class BarNode(AutoNode):

example_auto_nodes/icons/numpy.png

55.6 KB
Loading
File renamed without changes.

example_auto_nodes/logic_nodes.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def __init__(self):
1515
self._then = self.add_input('then')
1616
self._else = self.add_input('else')
1717
self.add_output('out')
18-
self.create_property('out', None)
18+
self.create_property('out', None)
1919

2020
def run(self):
2121
if self.getInputData(self.condition):
@@ -42,9 +42,9 @@ class BooleanNode(AutoNode):
4242

4343
def __init__(self):
4444
super(BooleanNode, self).__init__()
45-
self.a = self.add_input('a',bool)
46-
self.b = self.add_input('b',bool)
47-
self.add_output('out',bool)
45+
self.a = self.add_input('a', bool)
46+
self.b = self.add_input('b', bool)
47+
self.add_output('out', bool)
4848
self.create_property('out', None)
4949
self.add_combo_menu('funcs',
5050
'Functions',
@@ -75,4 +75,3 @@ def run(self):
7575
return
7676

7777
self.set_property('out', eval(self.func))
78-

example_auto_nodes/module_nodes.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
import numpydoc.docscrape
1010
import inspect
1111

12-
import example_auto_nodes.wrappers.math as _math
13-
import example_auto_nodes.wrappers.list as _list
14-
import example_auto_nodes.wrappers.dict as _dict
15-
import example_auto_nodes.wrappers.str as _str
16-
import example_auto_nodes.wrappers.tuple as _tuple
12+
from .wrappers import math as _math
13+
from .wrappers import list as _list
14+
from .wrappers import dict as _dict
15+
from .wrappers import str as _str
16+
from .wrappers import tuple as _tuple
1717

1818

1919
class MathModuleNode(ModuleNode):
@@ -103,6 +103,7 @@ class numpyModuleNode(ModuleNode):
103103

104104
def __init__(self):
105105
super(numpyModuleNode, self).__init__()
106+
self.set_icon("example_auto_nodes/icons/numpy.png")
106107

107108
def is_function(self, obj):
108109
result = super(numpyModuleNode, self).is_function(obj)

example_auto_nodes/node_base/module_node.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ class ModuleNode(AutoNode):
4646

4747
def __init__(self,defaultInputType=None,defaultOutputType=None):
4848
super(ModuleNode, self).__init__(defaultInputType,defaultOutputType)
49-
self.set_color(25, 58, 51)
5049
self.add_combo_menu('funcs', 'Functions', items=list(self.module_functions.keys()))
5150

5251
# switch math function type

0 commit comments

Comments
 (0)