Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sar_antarctica/nci/preparation/create_dem_vrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ def build_vrt(tiles: Generator[Path, None, None] | list[Path], vrt_path: str | o

os.remove("temp.txt")

def build_tileindex(tiles: Generator[Path, None, None], tindex_path: str | os.PathLike, run: bool = True):
def build_tileindex(tiles: Generator[Path, None, None] | list[Path], tindex_path: str | os.PathLike, run: bool = True):
"""Generic function for building a tile index from a generator of tile paths

Parameters
----------
tiles : Generator[Path, None, None]
A generator that yeilds `Path` objects for tiles
A generator (or list) that provides `Path` objects for tiles
e.g. /path/to/DEM_folder/DEM_file.tif
vrt_path : str | os.PathLike
Where to write the tile index to, ending in .gpkg
Expand Down
Loading