rename scripts
This commit is contained in:
@ -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:
|
||||||
|
|||||||
@ -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):
|
||||||
@ -1,4 +1,4 @@
|
|||||||
# map_render.py
|
# map.py
|
||||||
#
|
#
|
||||||
# author: deng
|
# author: deng
|
||||||
# date: 20251127
|
# date: 20251127
|
||||||
Reference in New Issue
Block a user