Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
564c4aa
update docs
daryaguettler Mar 11, 2026
abca5e7
make minor UI updates to visualizations
daryaguettler Mar 11, 2026
8893d97
add caching
daryaguettler Mar 12, 2026
866b7f4
update to use st.cache over session state
daryaguettler Mar 15, 2026
2b5aeff
updat utils for ruff lint
daryaguettler Mar 15, 2026
9815e45
update visualizations for overheating
daryaguettler Apr 7, 2026
c31b8ab
Merge branch 'main' into feature/update-docs-and-tests
daryaguettler Apr 7, 2026
3adafd0
fix radio button
daryaguettler Apr 7, 2026
73e9ebf
update data sourcing method
daryaguettler Apr 7, 2026
1b8a54c
update id mapping
daryaguettler Apr 7, 2026
2124094
add overhaeting metrics docs
daryaguettler Apr 9, 2026
ba6bb01
add use cases
daryaguettler Apr 9, 2026
50b1bbf
add links to wip models
daryaguettler Apr 9, 2026
8725693
update index
daryaguettler Apr 9, 2026
9432419
update aliasing
daryaguettler Apr 27, 2026
e629b86
Merge branch 'main' into feature/update-docs-and-tests
daryaguettler Apr 27, 2026
1a6b710
fix pyright errors
daryaguettler Apr 28, 2026
141e39c
update units for kdes
daryaguettler Apr 30, 2026
70f7ab4
update CRS and wtk treatment for non common CRS
daryaguettler May 1, 2026
631116b
update eui label
daryaguettler May 1, 2026
7e526ca
Merge branch 'main' into feature/update-docs-and-tests
daryaguettler May 1, 2026
e8c8624
add efficiency and caching optimizations
daryaguettler May 4, 2026
08f5f71
update axis name persistance
daryaguettler May 4, 2026
923e247
rebase and remove conflicts
daryaguettler May 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/globi/tools/visualization/data_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ def list_available_runs(self) -> list[str]:
self._run_dirs = {str(d.relative_to(self.config.base_dir)): d for d in run_dirs}
return list(self._run_dirs.keys())

def load_run_data(self, run_id: str) -> pd.DataFrame:
"""Load parquet data for a run."""
def get_run_parquet_path(self, run_id: str) -> Path:
"""Resolved EnergyAndPeak / Results parquet path for a run (for cache keys)."""
if run_id not in self._run_dirs:
self.list_available_runs()

Expand All @@ -266,7 +266,11 @@ def load_run_data(self, run_id: str) -> pd.DataFrame:
if pq_file is None:
msg = f"No .pq file in {run_dir}"
raise FileNotFoundError(msg)
return pq_file

def load_run_data(self, run_id: str) -> pd.DataFrame:
"""Load parquet data for a run."""
pq_file = self.get_run_parquet_path(run_id)
return load_output_table(pq_file)

def load_building_locations(self) -> pd.DataFrame | None:
Expand Down
3 changes: 2 additions & 1 deletion src/globi/tools/visualization/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,7 @@ def create_comparison_kde_d3_html(

svg.append("text").attr("class", "axis-label").attr("text-anchor", "middle")
.attr("x", margin.left + chartWidth / 2).attr("y", height - 6)
.text("energy use intensity (kWh/m2)");
.text(xAxisTitle);
svg.append("text").attr("class", "axis-label").attr("text-anchor", "middle")
.attr("transform", "rotate(-90)")
.attr("x", -(margin.top + chartHeight / 2)).attr("y", 16)
Expand Down Expand Up @@ -2565,6 +2565,7 @@ def create_building_map_deck_from_cache(
return None
map_vis = _maybe_scale_eui_column_for_display(map_df, value_col, eui_unit)
features = []

for i, feat in enumerate(geometry):
f = {"polygon": feat["polygon"], "height": feat["height"]}
if value_col and value_col in map_vis.columns:
Expand Down
Loading
Loading