Skip to content

Commit

Permalink
Always configure the pipeline_loader instead of custom_loader when ch…
Browse files Browse the repository at this point in the history
…oosing a loader, since the latter is always None (fixes stefan-jansen#218)
  • Loading branch information
phelps-sg committed Sep 24, 2023
1 parent caf3463 commit 8165deb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/zipline/utils/run_algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,8 @@ def _run(
bundle_data.adjustment_reader,
)

def choose_loader(column):
if column in USEquityPricing.columns:
return pipeline_loader
try:
return custom_loader.get(column)
except KeyError:
raise ValueError("No PipelineLoader registered for column %s." % column)
def choose_loader(_column):
return pipeline_loader

if isinstance(metrics_set, str):
try:
Expand Down

0 comments on commit 8165deb

Please sign in to comment.