1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-06-06 05:51:17 +08:00

fix_issue_1060 (#1092)

* fix_issue_1060

* fix_import_error
This commit is contained in:
Linlang
2022-05-07 20:59:06 +08:00
committed by GitHub
parent 2cf842bcfe
commit 2de9903200
2 changed files with 6 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
# Licensed under the MIT License.
import re
import sys
from datetime import datetime
from pathlib import Path
from typing import List, Iterable, Optional, Union
@@ -11,10 +12,11 @@ import pandas as pd
import baostock as bs
from loguru import logger
from scripts.data_collector.base import BaseCollector, BaseRun, BaseNormalize
from scripts.data_collector.utils import get_hs_stock_symbols, get_calendar_list
BASE_DIR = Path(__file__).resolve().parent
sys.path.append(str(BASE_DIR.parent.parent))
BASE_DIR = Path(__file__).resolve().parent.parent
from data_collector.base import BaseCollector, BaseRun, BaseNormalize
from data_collector.utils import get_hs_stock_symbols, get_calendar_list
class PitCollector(BaseCollector):