mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-04 19:41:00 +08:00
black format
This commit is contained in:
@@ -60,9 +60,11 @@ class Distance(PairOperator):
|
||||
series_right = self.feature_right.load(instrument, start_index, end_index, freq)
|
||||
return np.abs(series_left - series_right)
|
||||
|
||||
|
||||
OpsList = [Diff, Distance]
|
||||
Operators.register(OpsList)
|
||||
|
||||
|
||||
class TestRegiterCustomOps(TestAutoData):
|
||||
def test_regiter_custom_ops(self):
|
||||
instruments = ["SH600000"]
|
||||
|
||||
Reference in New Issue
Block a user