diff --git a/apps/center_of_gravity.py b/apps/center_of_gravity.py index d4059b4..6ba7c2e 100644 --- a/apps/center_of_gravity.py +++ b/apps/center_of_gravity.py @@ -91,6 +91,8 @@ def _(): import requests import folium from typing import Optional + import warnings + warnings.filterwarnings("ignore", message=".*narwhals.*is_pandas_dataframe.*") return alt, folium, mo, np, pl, requests diff --git a/apps/warehouse_location_part_1.py b/apps/warehouse_location_part_1.py index 8bd5a80..89d5921 100644 --- a/apps/warehouse_location_part_1.py +++ b/apps/warehouse_location_part_1.py @@ -48,7 +48,7 @@ class DataURLs: IMG_BASE = "apps/public/wlp/images" else: # WASM/deployed mode - use GitHub raw URLs for data files - BASE = raw_url("apps", "public", "cog", "data") + BASE = raw_url("apps", "public", "wlp", "data") IMG_BASE = "public/wlp/images" # Images work with relative paths print(f"Using BASE: {DataURLs.BASE}") @@ -89,6 +89,8 @@ def _(): import altair as alt import polars as pl import numpy as np + import warnings + warnings.filterwarnings("ignore", message=".*narwhals.*is_pandas_dataframe.*") return alt, mo, np, pl diff --git a/apps/warehouse_location_part_2.py b/apps/warehouse_location_part_2.py index 693ebe9..cc42d79 100644 --- a/apps/warehouse_location_part_2.py +++ b/apps/warehouse_location_part_2.py @@ -48,7 +48,7 @@ class DataURLs: IMG_BASE = "apps/public/wlp/images" else: # WASM/deployed mode - use GitHub raw URLs for data files - BASE = raw_url("apps", "public", "cog", "data") + BASE = raw_url("apps", "public", "wlp", "data") IMG_BASE = "public/wlp/images" # Images work with relative paths print(f"Using BASE: {DataURLs.BASE}") @@ -91,6 +91,8 @@ def _(): import numpy as np import pulp import folium + import warnings + warnings.filterwarnings("ignore", message=".*narwhals.*is_pandas_dataframe.*") return folium, mo, np, pl, pulp