Skip to content

Commit 7c480a1

Browse files
committed
fix PYlint
1 parent 69cf2ab commit 7c480a1

File tree

7 files changed

+8
-15
lines changed

7 files changed

+8
-15
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
Recent released features
1212
| Feature | Status |
1313
| -- | ------ |
14+
| Point-in-Time database | :hammer: [Rleased](https://github.com/microsoft/qlib/pull/343) on Mar 10, 2022 |
15+
| Arctic Provider Backend & Orderbook data example | :hammer: [Rleased](https://github.com/microsoft/qlib/pull/744) on Jan 17, 2022 |
1416
| Arctic Provider Backend & Orderbook data example | :hammer: [Rleased](https://github.com/microsoft/qlib/pull/744) on Jan 17, 2022 |
1517
| Meta-Learning-based framework & DDG-DA | :chart_with_upwards_trend: :hammer: [Released](https://github.com/microsoft/qlib/pull/743) on Jan 10, 2022 |
1618
| Planning-based portfolio optimization | :hammer: [Released](https://github.com/microsoft/qlib/pull/754) on Dec 28, 2021 |
@@ -95,9 +97,8 @@ For more details, please refer to our paper ["Qlib: An AI-oriented Quantitative
9597
# Plans
9698
New features under development(order by estimated release time).
9799
Your feedbacks about the features are very important.
98-
| Feature | Status |
99-
| -- | ------ |
100-
| Point-in-Time database | Under review: https://github.com/microsoft/qlib/pull/343 |
100+
<!-- | Feature | Status | -->
101+
<!-- | -- | ------ | -->
101102

102103
# Framework of Qlib
103104

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Document Structure
5353
Online & Offline mode <advanced/server.rst>
5454
Serialization <advanced/serial.rst>
5555
Task Management <advanced/task_management.rst>
56+
Point-In-Time database <advanced/PIT.rst>
5657

5758
.. toctree::
5859
:maxdepth: 3

qlib/data/base.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@
55
from __future__ import division
66
from __future__ import print_function
77

8-
import os
98
import abc
109
import pandas as pd
11-
import numpy as np
12-
13-
from ..utils import code_to_fname
1410
from ..log import get_module_logger
1511

1612

@@ -270,5 +266,3 @@ class ExpressionOps(Expression):
270266
This kind of feature will use operator for feature
271267
construction on the fly.
272268
"""
273-
274-
pass

qlib/data/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
)
3333

3434
from ..log import get_module_logger
35-
from .base import Feature, PFeature
35+
from .base import Feature
3636
from .ops import Operators # pylint: disable=W0611
3737

3838

qlib/data/data.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from __future__ import print_function
77

88
import re
9-
import os
109
import abc
1110
import copy
1211
import queue
@@ -24,7 +23,6 @@
2423

2524
from ..log import get_module_logger
2625
from .cache import DiskDatasetCache
27-
from .base import Feature, PFeature
2826
from ..utils import (
2927
Wrapper,
3028
init_instance_by_config,

qlib/data/ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1643,7 +1643,7 @@ def register_all_ops(C):
16431643
"""register all operator"""
16441644
logger = get_module_logger("ops")
16451645

1646-
from qlib.data.pit import P
1646+
from qlib.data.pit import P # pylint: disable=C0415
16471647

16481648
Operators.reset()
16491649
Operators.register(OpsList + [P])

qlib/data/pit.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@
1717
import pandas as pd
1818
from qlib.data.ops import ElemOperator
1919
from qlib.log import get_module_logger
20-
20+
from .data import Cal
2121

2222
class P(ElemOperator):
2323
def _load_internal(self, instrument, start_index, end_index, freq):
24-
from .data import Cal
2524

2625
_calendar = Cal.calendar(freq=freq)
2726
resample_data = np.empty(end_index - start_index + 1, dtype="float32")

0 commit comments

Comments
 (0)