MAINT: Rename drain_pipeline -> pipeline_output.

More boring, but *drain* carries a connotation of "get everything",
which is misleading.
This commit is contained in:
Scott Sanderson
2015-10-01 18:03:54 -04:00
parent 4f2d3d783a
commit 096a0d49fd
3 changed files with 22 additions and 22 deletions
+6 -6
View File
@@ -39,7 +39,7 @@ from zipline.errors import (
OrderDuringInitialize,
OverrideCommissionPostInit,
OverrideSlippagePostInit,
DrainPipelineDuringInitialize,
PipelineOutputDuringInitialize,
RegisterAccountControlPostInit,
RegisterTradingControlPostInit,
UnsupportedCommissionModel,
@@ -1346,8 +1346,8 @@ class TradingAlgorithm(object):
self._pipelines.append(pipeline)
@api_method
@require_initialized(DrainPipelineDuringInitialize())
def drain_pipeline(self, name=None):
@require_initialized(PipelineOutputDuringInitialize())
def pipeline_output(self, name):
"""
Get the results of pipeline with name `name`.
@@ -1382,11 +1382,11 @@ class TradingAlgorithm(object):
name=name,
valid=[p.name for p in self._pipelines],
)
return self._pipeline_results(p)
return self._pipeline_output(p)
def _pipeline_results(self, pipeline):
def _pipeline_output(self, pipeline):
"""
Internal implementation of `drain_pipeline`.
Internal implementation of `pipeline_output`.
"""
today = normalize_date(self.get_datetime())
try: