From 73dd1980c7308a50e927f951d80e42b9f083a566 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Sun, 8 Dec 2024 10:59:17 -0500 Subject: [PATCH] ruff --- docs/tutorials/earth_surface_water.ipynb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/tutorials/earth_surface_water.ipynb b/docs/tutorials/earth_surface_water.ipynb index c4516707690..dbac6aecf45 100644 --- a/docs/tutorials/earth_surface_water.ipynb +++ b/docs/tutorials/earth_surface_water.ipynb @@ -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" ] }, { @@ -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'" ] }, {