Skip to content

Commit

Permalink
Fixup output collector related code.
Browse files Browse the repository at this point in the history
  • Loading branch information
avolkov1 committed Sep 24, 2021
1 parent 8ce84b7 commit 8608855
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
" in4: sharpe_ratio.sharpe_out\n",
" in5: cumulative_return.cum_return\n",
" in6: stock_data.cudf_out\n",
" module: rapids_modules\n",
" type: Output_Collector\n"
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
inputs:
in1: stock_data.cudf_out
in2: add_return_feature.stock_out
module: rapids_modules
type: Output_Collector
- conf:
- column: volume
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,4 @@
inputs:
in1: cumulative_return.cum_return
in2: sharpe_ratio.sharpe_out
module: rapids_modules
type: Output_Collector
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
in4: sharpe_ratio.sharpe_out
in5: cumulative_return.cum_return
in6: stock_data.cudf_out
module: rapids_modules
type: Output_Collector
- conf:
keys:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
inputs:
in1: csv_output2.df_out
in2: csv_output1.df_out
module: rapids_modules
type: Output_Collector
- conf:
input:
Expand Down
4 changes: 3 additions & 1 deletion gQuant/plugins/gquant_plugin/tests/unit/test_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def setUp(self):
'ports_setup.taskGraph.py': 5,
'ports_setup._node_flow.py': 320,
'ports_setup.template_node_mixin.py': 77,
'ports_setup_ext._node_taskgraph_extension_mixin.py': 77
'ports_setup_ext._node_taskgraph_extension_mixin.py': 77,
'ports_setup.output_collector_node.py': 5
}

self.meta_setup_ref = {
Expand All @@ -63,6 +64,7 @@ def setUp(self):
'meta_setup._node_flow.py': 177,
'meta_setup.template_node_mixin.py': 47,
'meta_setup_ext._node_taskgraph_extension_mixin.py': 47,
'meta_setup.output_collector_node.py': 5
}

tgraphpath = str(topdir) + \
Expand Down
2 changes: 2 additions & 0 deletions greenflow/greenflow/dataframe_flow/output_collector_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

__all__ = ['Output_Collector', 'OUTPUT_ID', 'OUTPUT_TYPE']


class Output_Collector(Node):
def meta_setup(self):
return super().meta_setup()
Expand All @@ -17,6 +18,7 @@ def conf_schema(self):
def process(self, inputs):
return super().process(inputs)


# TODO: DO NOT RELY ON special OUTPUT_ID.
# OUTPUT_ID = 'f291b900-bd19-11e9-aca3-a81e84f29b0f_uni_output'
OUTPUT_ID = 'collector_id_fd9567b6'
Expand Down

0 comments on commit 8608855

Please sign in to comment.