Skip to content

Commit

Permalink
fix PYlint
Browse files Browse the repository at this point in the history
  • Loading branch information
you-n-g committed Mar 10, 2022
1 parent 69cf2ab commit de8d6cb
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 14 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
Recent released features
| Feature | Status |
| -- | ------ |
| Point-in-Time database | :hammer: [Rleased](https://github.com/microsoft/qlib/pull/343) on Mar 10, 2022 |
| Arctic Provider Backend & Orderbook data example | :hammer: [Rleased](https://github.com/microsoft/qlib/pull/744) on Jan 17, 2022 |
| Arctic Provider Backend & Orderbook data example | :hammer: [Rleased](https://github.com/microsoft/qlib/pull/744) on Jan 17, 2022 |
| Meta-Learning-based framework & DDG-DA | :chart_with_upwards_trend: :hammer: [Released](https://github.com/microsoft/qlib/pull/743) on Jan 10, 2022 |
| Planning-based portfolio optimization | :hammer: [Released](https://github.com/microsoft/qlib/pull/754) on Dec 28, 2021 |
Expand Down Expand Up @@ -95,9 +97,8 @@ For more details, please refer to our paper ["Qlib: An AI-oriented Quantitative
# Plans
New features under development(order by estimated release time).
Your feedbacks about the features are very important.
| Feature | Status |
| -- | ------ |
| Point-in-Time database | Under review: https://github.com/microsoft/qlib/pull/343 |
<!-- | Feature | Status | -->
<!-- | -- | ------ | -->

# Framework of Qlib

Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Document Structure
Online & Offline mode <advanced/server.rst>
Serialization <advanced/serial.rst>
Task Management <advanced/task_management.rst>
Point-In-Time database <advanced/PIT.rst>

.. toctree::
:maxdepth: 3
Expand Down
6 changes: 0 additions & 6 deletions qlib/data/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@
from __future__ import division
from __future__ import print_function

import os
import abc
import pandas as pd
import numpy as np

from ..utils import code_to_fname
from ..log import get_module_logger


Expand Down Expand Up @@ -270,5 +266,3 @@ class ExpressionOps(Expression):
This kind of feature will use operator for feature
construction on the fly.
"""

pass
2 changes: 1 addition & 1 deletion qlib/data/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
)

from ..log import get_module_logger
from .base import Feature, PFeature
from .base import Feature
from .ops import Operators # pylint: disable=W0611


Expand Down
2 changes: 0 additions & 2 deletions qlib/data/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from __future__ import print_function

import re
import os
import abc
import copy
import queue
Expand All @@ -24,7 +23,6 @@

from ..log import get_module_logger
from .cache import DiskDatasetCache
from .base import Feature, PFeature
from ..utils import (
Wrapper,
init_instance_by_config,
Expand Down
2 changes: 1 addition & 1 deletion qlib/data/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -1643,7 +1643,7 @@ def register_all_ops(C):
"""register all operator"""
logger = get_module_logger("ops")

from qlib.data.pit import P
from qlib.data.pit import P # pylint: disable=C0415

Operators.reset()
Operators.register(OpsList + [P])
Expand Down
2 changes: 1 addition & 1 deletion qlib/data/pit.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
import pandas as pd
from qlib.data.ops import ElemOperator
from qlib.log import get_module_logger
from .data import Cal


class P(ElemOperator):
def _load_internal(self, instrument, start_index, end_index, freq):
from .data import Cal

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

0 comments on commit de8d6cb

Please sign in to comment.