torchgeo/tests/datasets
Adrian Tofting 5c4c7168f2 Add check if path is vsi (#1612)
* Add check if path is vsi

* Add url to reference for apache vsi syntax

* Add missing check to if

* Copy rasterio SCHEMES definition into torchgeo

* Check all schemes, not only last

* Simplify method path_is_vsi

* Add tests

* Remove print

* Update test names

* Add missing comma in list

* Update torchgeo/datasets/utils.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update torchgeo/datasets/utils.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Use pytest tmp_path for test

* Warn if some of input paths are invalid

* Update docstring for mocked class

* Handle tests failing due to UserWarning

* Remove unnecessary filterwarning

* Test CustomGeoDataset instead of MockRasterDataset

* Merge two similar tests

* str instead of as_posix

Wait with pathlib syntax

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

---------

Co-authored-by: Adrian Tofting <adrian@vake.ai>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2023-11-06 15:20:44 +01:00
..
__init__.py Flake8 fixes 2021-08-31 13:25:05 -05:00
test_advance.py Skip tests that require optional deps 2023-09-30 22:25:31 +02:00
test_agb_live_woody_density.py Allow RasterDataset to accept list of files (#1442) 2023-09-29 09:28:07 -05:00
test_astergdem.py Allow RasterDataset to accept list of files (#1442) 2023-09-29 09:28:07 -05:00
test_benin_cashews.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_bigearthnet.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_biomassters.py Add BioMassters Dataset (#1560) 2023-09-29 09:48:16 -05:00
test_cbf.py Feature/refactor vector root to paths (#1597) 2023-09-29 17:39:04 +00:00
test_cdl.py Allow RasterDataset to accept list of files (#1442) 2023-09-29 09:28:07 -05:00
test_chesapeake.py Feature/refactor vector root to paths (#1597) 2023-09-29 17:39:04 +00:00
test_cloud_cover.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_cms_mangrove_canopy.py Allow RasterDataset to accept list of files (#1442) 2023-09-29 09:28:07 -05:00
test_cowc.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_cv4a_kenya_crop_type.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_cyclone.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_deepglobelandcover.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_dfc2022.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_eddmaps.py Promote pandas to a required dependency (#1586) 2023-09-25 08:09:12 -07:00
test_enviroatlas.py Feature/refactor vector root to paths (#1597) 2023-09-29 17:39:04 +00:00
test_esri2020.py Allow RasterDataset to accept list of files (#1442) 2023-09-29 09:28:07 -05:00
test_etci2021.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_eudem.py Allow RasterDataset to accept list of files (#1442) 2023-09-29 09:28:07 -05:00
test_eurosat.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_fair1m.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_fire_risk.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_forestdamage.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_gbif.py Promote pandas to a required dependency (#1586) 2023-09-25 08:09:12 -07:00
test_geo.py Add check if path is vsi (#1612) 2023-11-06 15:20:44 +01:00
test_gid15.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_globbiomass.py Allow RasterDataset to accept list of files (#1442) 2023-09-29 09:28:07 -05:00
test_idtrees.py Ensure that none of our minimum version tests are skipped (#1587) 2023-09-25 10:51:36 -05:00
test_inaturalist.py Promote pandas to a required dependency (#1586) 2023-09-25 08:09:12 -07:00
test_inria.py Added functionality for validation split (#1540) 2023-09-29 11:02:19 -05:00
test_l7irish.py Allow RasterDataset to accept list of files (#1442) 2023-09-29 09:28:07 -05:00
test_l8biome.py Allow RasterDataset to accept list of files (#1442) 2023-09-29 09:28:07 -05:00
test_landcoverai.py Allow RasterDataset to accept list of files (#1442) 2023-09-29 09:28:07 -05:00
test_landsat.py Allow RasterDataset to accept list of files (#1442) 2023-09-29 09:28:07 -05:00
test_levircd.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_loveda.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_mapinwild.py MapInWild: prevent download during testing (#1657) 2023-11-06 15:18:22 +01:00
test_millionaid.py Million-AID dataset (#455) 2022-07-09 22:05:10 +00:00
test_naip.py Bump torchvision from 0.12.0 to 0.13.0 in /requirements (#631) 2022-06-30 10:39:03 -07:00
test_nasa_marine_debris.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_nlcd.py Allow RasterDataset to accept list of files (#1442) 2023-09-29 09:28:07 -05:00
test_openbuildings.py Feature/refactor vector root to paths (#1597) 2023-09-29 17:39:04 +00:00
test_oscd.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_pastis.py PASTIS dataset (#315) 2023-08-03 11:46:49 -07:00
test_patternnet.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_potsdam.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_reforestree.py Promote pandas to a required dependency (#1586) 2023-09-25 08:09:12 -07:00
test_resisc45.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_rwanda_field_boundary.py Adding the RwandaFieldBoundary dataset (#1574) 2023-09-29 10:34:51 +00:00
test_seasonet.py Promote pandas to a required dependency (#1586) 2023-09-25 08:09:12 -07:00
test_seco.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_sen12ms.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_sentinel.py Allow RasterDataset to accept list of files (#1442) 2023-09-29 09:28:07 -05:00
test_skippd.py Isort fixes 2023-09-30 22:26:57 +02:00
test_so2sat.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_spacenet.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_splits.py Drop Python 3.8 support (#1246) 2023-04-15 20:27:51 -05:00
test_ssl4eo.py SSL4EO-L: add download support (#1424) 2023-06-20 11:54:10 -05:00
test_ssl4eo_benchmark.py CDL/NLCD/SSL4EO: allow selection of classes (#1392) 2023-06-04 08:21:05 -07:00
test_sustainbench_crop_yield.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_ucmerced.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_usavars.py Promote pandas to a required dependency (#1586) 2023-09-25 08:09:12 -07:00
test_utils.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_vaihingen.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_vhr10.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_western_usa_live_fuel_moisture.py Promote pandas to a required dependency (#1586) 2023-09-25 08:09:12 -07:00
test_xview2.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00
test_zuericrop.py MonkeyPatch exposed in public API in newer pytest (#1333) 2023-05-14 11:00:19 -05:00