rename scripts

This commit is contained in:
deng
2025-11-28 10:11:05 +08:00
parent 8de4db857e
commit fd03436d61
3 changed files with 9 additions and 6 deletions

View File

@ -7,9 +7,9 @@ from datetime import datetime
import streamlit as st import streamlit as st
import yaml import yaml
from elevation_profile import ElevationProfileRenderer from elevation import ElevationRenderer
from gpx import GPXProcessor from gpx import GPXProcessor
from map_render import MapRenderer from map import MapRenderer
from streamlit_folium import st_folium from streamlit_folium import st_folium
from weather import WeatherFetcher from weather import WeatherFetcher
@ -145,7 +145,7 @@ class HikingAssistant:
with profile_col: with profile_col:
with st.spinner('正在繪製海拔剖面圖...'): with st.spinner('正在繪製海拔剖面圖...'):
profile_renderer = ElevationProfileRenderer() profile_renderer = ElevationRenderer()
elevation_fig = profile_renderer.create_elevation_profile(distances, elevations, gradients) elevation_fig = profile_renderer.create_elevation_profile(distances, elevations, gradients)
if elevation_fig: if elevation_fig:

View File

@ -1,9 +1,12 @@
"""Elevation profile visualization module using Plotly.""" # elevation.py
#
# author: deng
# date: 20251127
import plotly.graph_objects as go import plotly.graph_objects as go
class ElevationProfileRenderer: class ElevationRenderer:
"""Render elevation profiles with gradient-based coloring.""" """Render elevation profiles with gradient-based coloring."""
def __init__(self): def __init__(self):

View File

@ -1,4 +1,4 @@
# map_render.py # map.py
# #
# author: deng # author: deng
# date: 20251127 # date: 20251127