mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-06-11 09:24:44 +02:00
fix: remove hardcoded fallbacks + add missing config UI sections
This commit is contained in:
parent
f8bf7e5057
commit
bb36ebb8c3
7 changed files with 134 additions and 39 deletions
2
meshai/env/avalanche.py
vendored
2
meshai/env/avalanche.py
vendored
|
|
@ -31,7 +31,7 @@ class AvalancheAdapter:
|
|||
}
|
||||
|
||||
def __init__(self, config: "AvalancheConfig"):
|
||||
self._center_ids = config.center_ids or ["SNFAC"]
|
||||
self._center_ids = config.center_ids
|
||||
self._tick_interval = config.tick_seconds or 1800
|
||||
self._season_months = config.season_months or [12, 1, 2, 3, 4]
|
||||
self._last_tick = 0.0
|
||||
|
|
|
|||
4
meshai/env/ducting.py
vendored
4
meshai/env/ducting.py
vendored
|
|
@ -28,8 +28,8 @@ class DuctingAdapter:
|
|||
"""Tropospheric ducting assessment from Open-Meteo GFS pressure levels."""
|
||||
|
||||
def __init__(self, config: "DuctingConfig"):
|
||||
self._lat = config.latitude or 42.56
|
||||
self._lon = config.longitude or -114.47
|
||||
self._lat = config.latitude
|
||||
self._lon = config.longitude
|
||||
self._tick_interval = config.tick_seconds or 10800 # 3 hours
|
||||
self._last_tick = 0.0
|
||||
self._status = {}
|
||||
|
|
|
|||
2
meshai/env/fires.py
vendored
2
meshai/env/fires.py
vendored
|
|
@ -20,7 +20,7 @@ class NICFFiresAdapter:
|
|||
BASE_URL = "https://services3.arcgis.com/T4QMspbfLg3qTGWY/arcgis/rest/services/WFIGS_Interagency_Perimeters_Current/FeatureServer/0/query"
|
||||
|
||||
def __init__(self, config: "NICFFiresConfig", region_anchors: list = None):
|
||||
self._state = config.state or "US-ID"
|
||||
self._state = config.state
|
||||
self._tick_interval = config.tick_seconds or 600
|
||||
self._last_tick = 0.0
|
||||
self._events = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue