Skip to content

Commit

Permalink
Formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
calebrob6 committed Sep 15, 2024
1 parent 726e485 commit 57f9661
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions torchgeo/datasets/ftw.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@

"""Fields Of The World dataset."""

import glob
import os
from collections.abc import Callable, Sequence
from typing import ClassVar

import matplotlib.pyplot as plt
import numpy as np
import rasterio
import torch
from matplotlib.figure import Figure
from PIL import Image
from torch import Tensor
import rasterio

from .errors import DatasetNotFoundError
from .geo import NonGeoDataset
Expand Down Expand Up @@ -125,7 +123,7 @@ def __init__(
download: bool = False,
checksum: bool = False,
) -> None:
"""Initialize a new Fields of The World dataset instance.
"""Initialize a new Fields Of The World dataset instance.
Args:
root: root directory where dataset can be found
Expand Down Expand Up @@ -265,7 +263,7 @@ def _load_target(self, path: Path) -> Tensor:
tensor = torch.from_numpy(array).long()
return tensor

def _check_integrity(self, country) -> bool:
def _check_integrity(self, country: str) -> bool:
"""Check the integrity of the dataset structure.
Args:
Expand Down

0 comments on commit 57f9661

Please sign in to comment.