1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-02 02:21:18 +08:00

update format

This commit is contained in:
bxdd
2020-12-21 12:09:25 +00:00
parent 7d97fd39ce
commit 132df027a5

View File

@@ -63,8 +63,8 @@ class Distance(PairOperator):
series_right = self.feature_right.load(instrument, start_index, end_index, freq)
return np.abs(series_left - series_right)
class TestRegiterCustomOps(TestAutoData):
def test_regiter_custom_ops(self):
OpsList = [Diff, Distance]
Operators.register(OpsList)
@@ -75,8 +75,3 @@ class TestRegiterCustomOps(TestAutoData):
if __name__ == "__main__":
unittest.main(verbosity=10)
# User could use following code to run test when using line_profiler
# td = TestDataset()
# td.setUpClass()
# td.testTSDataset()