torchgeo/tests
Adrian Tofting 3532f78383
Feature/refactor vector root to paths (#1597)
* Make RasterDataset accept list of files

* Fix check if str

* Use isdir and isfile

* Rename root to paths and update type hint

* Update children of RasterDataset methods using root

* Fix check to cast str to list

* Update conf files for RasterDatasets

* Add initial suggested test

* Add workaround for lists LandCoverAIBase

* Add method handle_nonlocal_path for users to override

* Raise RuntimeError to support existing tests

* Remove reduntand cast to set

* Remove required os.exists for paths

* Revert "Remove required os.exists for paths"

This reverts commit 84bf62b944326c33d5ba8efdcab615c65b124792.

* Use arg  as potitional argument not kwarg

* Improve comments and logs about arg paths

* Remove misleading comment

* Change type hint of 'paths' to Iterable

* Change type hint of 'paths' to Iterable

* Remove premature handling of non-local paths

* Replace root with paths in docstrings

* Add versionadded to list_files docstring

* Add versionchanged to docstrings

* Update type of paths in childred of Raster

* Replace docstring for paths in all raster

* Swap root with paths for conf files for raster

* Add newline before versionchanged

* Revert name to root in conf for ChesapeakeCVPR

* Simplify EUDEM tests

* paths must be a string if you want autodownload support

* Convert list_files to a property

* Fix type hints

* Test with a real empty directory

* Move property `files` up to GeoDataset

* Rename root to paths for VectorDataset

* Fix mypy

* Fix tests

* Delete duplicate code

* Delete duplicate code

* Fix test coverage

* Document name change

---------

Co-authored-by: Adrian Tofting <adriantofting@mobmob14994.hq.k.grp>
Co-authored-by: Adrian Tofting <adrian@vake.ai>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2023-09-29 17:39:04 +00:00
..
conf Added functionality for validation split (#1540) 2023-09-29 11:02:19 -05:00
data Added functionality for validation split (#1540) 2023-09-29 11:02:19 -05:00
datamodules Bump matplotlib from 3.7.3 to 3.8.0 in /requirements (#1566) 2023-09-21 11:35:57 +00:00
datasets Feature/refactor vector root to paths (#1597) 2023-09-29 17:39:04 +00:00
losses Remove type ignores for PyTorch (#460) 2022-03-14 20:35:37 +00:00
models Add empirical sampling mode to the RCF model (#1339) 2023-09-29 08:55:11 -05:00
samplers GridGeoSampler: don't change stride of last patch (#1329) 2023-05-14 10:59:58 -05:00
trainers Add command line script (#1559) 2023-09-27 10:11:52 -07:00
transforms RandomGrayscale: add new transform (#1301) 2023-05-03 15:29:49 -05:00
__init__.py Flake8 fixes 2021-08-31 13:25:05 -05:00
test_main.py Add command line script (#1559) 2023-09-27 10:11:52 -07:00