Skip to content

Commit

Permalink
fixed csvdir import error (stefan-jansen#168)
Browse files Browse the repository at this point in the history
* fixed csvdir import error

* restored the isfile() check
  • Loading branch information
ramashisx authored Feb 20, 2023
1 parent a249d4a commit 58ddd37
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/zipline/data/bundles/csvdir.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,7 @@ def _pricing_iter(csvdir, symbols, metadata, divs_splits, show_progress):
# NOTE: if there are duplicates it will arbitrarily pick the latest found
fnames = {
f.name.split(".")[0]: f.name
for f in files
if f.is_file() and f.name.split(".")[0] in it
for f in files if f.is_file()
}

for sid, symbol in enumerate(it):
Expand Down

0 comments on commit 58ddd37

Please sign in to comment.