Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Dec 8, 2024
1 parent 1781f7c commit 73dd198
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docs/tutorials/earth_surface_water.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"\n",
"from torchgeo.datasets import RasterDataset, stack_samples, unbind_samples, utils\n",
"from torchgeo.samplers import RandomGeoSampler, Units\n",
"from torchgeo.transforms import indices\n"
"from torchgeo.transforms import indices"
]
},
{
Expand Down Expand Up @@ -164,11 +164,14 @@
],
"source": [
"# Download and extract dataset to a temp folder\n",
"tmp_path = Path(tempfile.gettempdir())/'surface_water/'\n",
"utils.download_and_extract_archive('https://huggingface.co/datasets/cordmaur/earth_surface_water/resolve/main/earth_surface_water.zip', tmp_path)\n",
"tmp_path = Path(tempfile.gettempdir()) / 'surface_water/'\n",
"utils.download_and_extract_archive(\n",
" 'https://huggingface.co/datasets/cordmaur/earth_surface_water/resolve/main/earth_surface_water.zip',\n",
" tmp_path,\n",
")\n",
"\n",
"# Set the root to the extracted folder\n",
"root = tmp_path/'dset-s2'"
"root = tmp_path / 'dset-s2'"
]
},
{
Expand Down

0 comments on commit 73dd198

Please sign in to comment.