Commit 893c28c2 authored by Dr.李's avatar Dr.李

REFACTOR: disable 2 tables

parent 5de3e515
......@@ -2,8 +2,14 @@ FROM wegamekinglc/python:3.7-slim-stretch-aliyun
LABEL maintainer = "scrappedprince.li@gmail.com"
RUN apt-get update && apt-get install git cmake build-essential gfortran default-libmysqlclient-dev -y
COPY ./alphamind /alphamind
COPY ./notebooks /notebooks
WORKDIR /
COPY ./requirements.txt /requirements.txt
RUN pip install numpy==1.19.1 -i https://pypi.douban.com/simple
RUN pip install -r /requirements.txt -i https://pypi.douban.com/simple
RUN pip install finance-python>=0.8.1 -i https://pypi.douban.com/simple
COPY ./alphamind/pfopt /alphamind/pfopt
WORKDIR /alphamind/pfopt
RUN export BUILD_TEST=OFF
......@@ -11,10 +17,8 @@ RUN export REDIRECT=$1
RUN bash ./build_linux.sh
WORKDIR /
COPY ./requirements.txt /requirements.txt
RUN pip install numpy==1.19.1 -i https://pypi.douban.com/simple
RUN pip install -r /requirements.txt -i https://pypi.douban.com/simple
RUN pip install finance-python>=0.8.1 -i https://pypi.douban.com/simple
COPY ./alphamind /alphamind
COPY ./notebooks /notebooks
COPY ./setup.py /setup.py
COPY ./setup.cfg /setup.cfg
......
......@@ -22,10 +22,10 @@ if "DB_VENDOR" in os.environ and os.environ["DB_VENDOR"].lower() == "rl":
from alphamind.data.dbmodel.models.models_rl import IndexWeight
from alphamind.data.dbmodel.models.models_rl import FactorMomentum
from alphamind.data.dbmodel.models.models_rl import FactorValuationEstimation
from alphamind.data.dbmodel.models.models_rl import FactorVolatilityValue
# from alphamind.data.dbmodel.models.models_rl import FactorValuationEstimation
# from alphamind.data.dbmodel.models.models_rl import FactorVolatilityValue
factor_tables = [Market, RiskExposure, FactorMomentum, FactorValuationEstimation, FactorVolatilityValue]
factor_tables = [Market, RiskExposure, FactorMomentum]
else:
from alphamind.data.dbmodel.models.models import Market
from alphamind.data.dbmodel.models.models import IndexMarket
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment