-
Notifications
You must be signed in to change notification settings - Fork 128
Tests for the datasets inside terratorch/datasets/open_sentinel_map.py #516 #586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests for the datasets inside terratorch/datasets/open_sentinel_map.py #516 #586
Conversation
Signed-off-by: demoncoder-crypto <[email protected]>
Signed-off-by: demoncoder-crypto <[email protected]>
|
Hi, @demoncoder-crypto. Thank you for you contribution. |
|
Ok I will work on it. Try to resolve it. Thanks for the response @Joao-L-S-Almeida |
|
Thank you. No worries. |
|
Any updates @Joao-L-S-Almeida |
|
Hi, @demoncoder-crypto. There are tests failing due to missing directories and attributes. I'm trying to reproduce them. |
|
@demoncoder-crypto closing due to inactivity |

Added Unit Tests for OpenSentinelMap: Introduced a new test suite (TestOpenSentinelMap) in tests/test_datasets.py to specifically address test coverage for the OpenSentinelMap dataset class, fulfilling issue #516.
Implemented Mock Data Fixture: Created a pytest fixture (open_sentinel_map_data) that generates a temporary, self-contained mock dataset structure (including NPZ images, PNG masks, CSV metadata, and JSON config) required for testing OpenSentinelMap without needing the actual data.
Verified Core Functionality: The new tests cover essential OpenSentinelMap operations, including initialization with different splits/bands, data loading (getitem) with variations (interpolation, padding, truncation, random pairing), handling invalid inputs, and basic plotting (plot).