WeatherPred / weatherpred /config.py
yyyc's picture
fist push the app
5194558
Raw
History Blame Contribute Delete
855 Bytes
"""Project configuration constants."""
from __future__ import annotations
from pathlib import Path
ROOT_DIR = Path(__file__).resolve().parents[1]
DATA_DIR = ROOT_DIR / "data"
MODELS_DIR = ROOT_DIR / "models"
MODEL_PATH = MODELS_DIR / "mock_model" / "model.onnx"
TOKYO_LATITUDE = 35.6762
TOKYO_LONGITUDE = 139.6503
TOKYO_TIMEZONE = "Asia/Tokyo"
FORECAST_DAYS = 5
LOOKBACK_DAYS = 7
HISTORY_YEARS = 30
HISTORY_CSV_PATH = DATA_DIR / "tokyo_weather_history_30y.csv"
HISTORY_JSON_PATH = DATA_DIR / "tokyo_weather_history_30y.json"
LATEST_JSON_PATH = DATA_DIR / "tokyo_weather_latest.json"
DAILY_COLUMNS = [
"temperature_2m_max",
"temperature_2m_min",
"precipitation_sum",
"wind_speed_10m_max",
]
API_DISPLAY_COLUMNS = {
"high_c": "api_high_c",
"low_c": "api_low_c",
"rain_mm": "api_rain_mm",
"wind_kmh": "api_wind_kmh",
}