Skip to content

Commit e3a5e46

Browse files
authored
Merge pull request #122 from NVIDIA/develop
Fixed a bug in the split node. The col_from_inport was only defined inside the if condition. When adding a new node, the col_from_inport was not defined and produced "not defined' error.
2 parents 231b5ce + 4200f4c commit e3a5e46

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/ml/splitDataNode.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def ports_setup(self):
5656

5757
def meta_setup(self):
5858
cols_required = {}
59+
col_from_inport = {}
5960
required = {
6061
self.INPUT_PORT_NAME: cols_required
6162
}
@@ -64,7 +65,6 @@ def meta_setup(self):
6465
col_inport = input_meta[self.INPUT_PORT_NAME]
6566
if 'target' in self.conf:
6667
target_col = self.conf['target']
67-
col_from_inport = {}
6868
for i in sorted(col_inport.keys()):
6969
if i != target_col:
7070
col_from_inport[i] = col_inport[i]

gQuant/plugins/gquant_plugin/setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
setup(
44
name='greenflow_gquant_plugin',
5+
version='0.0.1',
56
install_requires=[
67
"bqplot", "tables", "ray[tune]"
78
],

0 commit comments

Comments
 (0)