diff --git a/ChanLun.py b/ChanLun.py index a6f6c0b..c9a753d 100644 --- a/ChanLun.py +++ b/ChanLun.py @@ -1,3 +1,12 @@ +import warnings + +# 抑制 Docker 内 technical.util 的 fillna/ffill/bfill 的 pandas FutureWarning(pandas 2.x 弃用 object 静默 downcast) +warnings.filterwarnings( + "ignore", + category=FutureWarning, + message=".*Downcasting object dtype arrays on \\.fillna.*", +) + from datetime import timedelta from pandas import DataFrame from ChanEnum import Chan_FX_TYPE, Chan_KLINE_DIR, Chan_BI_DIR, Chan_SEG_DIR, Chan_ZS_DIR, Chan_BSP_DIR, Chan_BSP_TYPE, Chan_KLC_FX, Chan_MACD_STATE, Chan_PRICE_TREND, Chan_KLU_PATTERN