zipline icon indicating copy to clipboard operation
zipline copied to clipboard

Irrelevant sid filtering test

Open warren-oneill opened this issue 11 years ago • 1 comments

In an earlier version of Zipline it was possible to pass sids to the DataFrameSource and these would be used as filters. In the newest version this functionality seems to be removed but the test is still there. It still passing though since df is only composed of data with sid=0.

def test_df_sid_filtering(self):
        _, df = factory.create_test_df_source()
        source = DataFrameSource(df)
        assert 1 not in [event.sid for event in source], \
            "DataFrameSource should only stream selected sid 0, not sid 1."

Should this be removed our is it planned to re-implement this functionality?

warren-oneill avatar Sep 03 '15 09:09 warren-oneill

Grepped through some Zipline code and I don't think this is here anymore.

freddiev4 avatar Dec 02 '17 19:12 freddiev4