Skip to content

Commit

Permalink
Update the list of sample data (#852)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
3 people authored Jul 25, 2024
1 parent 71e00bf commit d54514a
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Testing Leafmap Package
name: "TestingLeafmapUbuntu"

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Testing Leafmap Package (windows)
name: "TestingLeafmapWindows"

on:
push:
Expand Down
16 changes: 14 additions & 2 deletions docs/notebooks/52_netcdf.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\""
]
},
Expand All @@ -70,7 +70,7 @@
"metadata": {},
"outputs": [],
"source": [
"leafmap.download_file(url, output=filename)"
"leafmap.download_file(url, output=filename, overwrite=True)"
]
},
{
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion examples/notebooks/52_netcdf.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\""
]
},
Expand Down
2 changes: 0 additions & 2 deletions leafmap/examples/datasets.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d54514a

Please sign in to comment.