From d54514a8b6147af9b480f50a7f815f60cb254f25 Mon Sep 17 00:00:00 2001 From: Qiusheng Wu Date: Thu, 25 Jul 2024 10:40:53 -0400 Subject: [PATCH] Update the list of sample data (#852) * Update the list of sample data * Update netcdf file path * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix(rename): workflow name --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: arfy slowy --- .github/workflows/ubuntu_test.yml | 2 +- .github/workflows/windows.yml | 2 +- docs/notebooks/52_netcdf.ipynb | 16 ++++++++++++++-- examples/notebooks/52_netcdf.ipynb | 2 +- leafmap/examples/datasets.txt | 2 -- tests/test_common.py | 4 ++-- 6 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ubuntu_test.yml b/.github/workflows/ubuntu_test.yml index 3291dd67af..403d4d81d7 100644 --- a/.github/workflows/ubuntu_test.yml +++ b/.github/workflows/ubuntu_test.yml @@ -1,4 +1,4 @@ -name: Testing Leafmap Package +name: "TestingLeafmapUbuntu" on: push: diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 319397f89e..55a68ac017 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -1,4 +1,4 @@ -name: Testing Leafmap Package (windows) +name: "TestingLeafmapWindows" on: push: diff --git a/docs/notebooks/52_netcdf.ipynb b/docs/notebooks/52_netcdf.ipynb index 7c8b18223a..ef9e079816 100644 --- a/docs/notebooks/52_netcdf.ipynb +++ b/docs/notebooks/52_netcdf.ipynb @@ -59,7 +59,7 @@ "metadata": {}, "outputs": [], "source": [ - "url = \"https://github.com/opengeos/leafmap/raw/master/examples/data/wind_global.nc\"\n", + "url = \"https://github.com/opengeos/datasets/releases/download/raster/wind_global.nc\"\n", "filename = \"wind_global.nc\"" ] }, @@ -70,7 +70,7 @@ "metadata": {}, "outputs": [], "source": [ - "leafmap.download_file(url, output=filename)" + "leafmap.download_file(url, output=filename, overwrite=True)" ] }, { @@ -218,6 +218,18 @@ "display_name": "Python 3", "language": "python", "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.11.8" } }, "nbformat": 4, diff --git a/examples/notebooks/52_netcdf.ipynb b/examples/notebooks/52_netcdf.ipynb index 7c8b18223a..6679376c14 100644 --- a/examples/notebooks/52_netcdf.ipynb +++ b/examples/notebooks/52_netcdf.ipynb @@ -59,7 +59,7 @@ "metadata": {}, "outputs": [], "source": [ - "url = \"https://github.com/opengeos/leafmap/raw/master/examples/data/wind_global.nc\"\n", + "url = \"https://github.com/opengeos/datasets/releases/download/raster/wind_global.nc\"\n", "filename = \"wind_global.nc\"" ] }, diff --git a/leafmap/examples/datasets.txt b/leafmap/examples/datasets.txt index e0ba61d08d..70d43a0b2a 100644 --- a/leafmap/examples/datasets.txt +++ b/leafmap/examples/datasets.txt @@ -17,8 +17,6 @@ mask.geojson README.md sf_zip_geo.json states.csv -states.kml -states.kmz training_samples.geojson us_cities.cpg us_cities.csv diff --git a/tests/test_common.py b/tests/test_common.py index 4a16f28a6b..bcf0831014 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -19,8 +19,8 @@ def setUp(self): self.in_csv = os.path.abspath("examples/data/world_cities.csv") self.in_geojson = os.path.abspath("examples/data/cable_geo.geojson") self.in_shp = os.path.abspath("examples/data/countries.shp") - self.in_kml = os.path.abspath("examples/data/states.kml") - self.in_kmz = os.path.abspath("examples/data/states.kmz") + self.in_kml = os.path.abspath("examples/data/us_states.kml") + self.in_kmz = os.path.abspath("examples/data/us_states.kmz") self.in_cog = "https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif" def tearDown(self):