Skip to content
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

ETCI2021: fix file list when 'vv' in directory name #2532

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

adamjstewart
Copy link
Collaborator

Well this was one of the weirder bugs I've encountered in CI. See if you can spot the difference:

/private/var/folders/2s/h6hvv9ps03xgz_krkkstvq_r0000gn/T/pytest-of-runner/pytest-0/test_getitem_train_0/train/bangladesh_20170314t115609/tiles/vh/bangladesh_20170314t115609_x-0_y-0_vh.png
/private/var/folders/2s/h6hvh9ps03xgz_krkkstvq_r0000gn/T/pytest-of-runner/pytest-0/test_getitem_train_0/train/bangladesh_20170314t115609/tiles/vh/bangladesh_20170314t115609_x-0_y-0_vh.png

No? The difference is that the first string contains a random hash which accidentally contains vv, and our dataset was replacing all occurrences of vv with vh to get the cross-polarization file path. This was causing the tests to fail only on macOS since the tmp path is different on each OS. This bug has been present since this dataset was first added 4 years ago.

@adamjstewart adamjstewart added this to the 0.6.3 milestone Jan 24, 2025
@github-actions github-actions bot added the datasets Geospatial or benchmark datasets label Jan 24, 2025
@adamjstewart adamjstewart merged commit 171b498 into microsoft:main Jan 24, 2025
19 checks passed
@adamjstewart adamjstewart deleted the datasets/etci2021 branch January 24, 2025 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasets Geospatial or benchmark datasets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants