Skip to content

SEP loader #2

Description

@philschrad

I've used the sep script to ingest the sep data set from a dump and it works but with some warnings:

a total of 8639 securities were loaded into this bundle
/Users/phil/miniconda3/envs/p3zip/lib/python3.5/site-packages/zipline/data/us_equity_pricing.py:931: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  if not issubdtype(actual, expected):
[2018-03-27 04:38:36.511868] WARNING: UsEquityPricing: Couldn't compute ratio for dividend {'ex_date': numpy.datetime64('2008-01-02T00:00:00.000000000'), 'amount': nan, 'sid': 220}
[2018-03-27 04:38:36.513775] WARNING: UsEquityPricing: Couldn't compute ratio for dividend {'ex_date': numpy.datetime64('2008-01-02T00:00:00.000000000'), 'amount': 0.1, 'sid': 257}
[2018-03-27 04:38:36.514156] WARNING: UsEquityPricing: Couldn't compute ratio for dividend {'ex_date': numpy.datetime64('2008-01-02T00:00:00.000000000'), 'amount': nan, 'sid': 303}
[2018-03-27 04:38:36.514422] WARNING: UsEquityPricing: Couldn't compute ratio for dividend {'ex_date': numpy.datetime64('2008-01-02T00:00:00.000000000'), 'amount': 0.18, 'sid': 538}
[2018-03-27 04:38:36.514710] WARNING: UsEquityPricing: Couldn't compute ratio for dividend {'ex_date': numpy.datetime64('2008-01-02T00:00:00.000000000'), 'amount': 0.24, 'sid': 579}
...

and then when I try to use it with the simple pipeline engine I get this:

~/miniconda3/envs/p3zip/lib/python3.5/site-packages/zipline/data/us_equity_pricing.py in load_adjustments(self, columns, dates, assets)
   1302             list(columns),
   1303             dates,
-> 1304             assets,
   1305         )
   1306 

~/miniconda3/envs/p3zip/lib/python3.5/site-packages/zipline/data/_adjustments.pyx in zipline.data._adjustments.load_adjustments_from_sqlite()

~/miniconda3/envs/p3zip/lib/python3.5/site-packages/zipline/data/_adjustments.pyx in zipline.data._adjustments.load_adjustments_from_sqlite()

TypeError: a float is required

any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions