-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
238 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 43 additions & 40 deletions
83
src/utils/tests/data/data_test_filter_cached_coordinates.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,49 @@ | ||
import numpy as np | ||
|
||
|
||
parameters_filter_cached_coordinates_no_cached_tiles_dir = \ | ||
[([(512, 768), (768, 768), (512, 1024), (768, 1024)], | ||
[(512, 768), (768, 768), (512, 1024), (768, 1024)]), | ||
([(512, -768), (768, -768), (512, -512), (768, -512)], | ||
[(512, -768), (768, -768), (512, -512), (768, -512)]), | ||
([(-1024, -768), (-768, -768), (-1024, -512), (-768, -512)], | ||
[(-1024, -768), (-768, -768), (-1024, -512), (-768, -512)]), | ||
([(-1024, 768), (-768, 768), (-1024, 1024), (-768, 1024)], | ||
[(-1024, 768), (-768, 768), (-1024, 1024), (-768, 1024)]), | ||
([(-256, 0), (0, 0), (-256, 256), (0, 256)], | ||
[(-256, 0), (0, 0), (-256, 256), (0, 256)])] | ||
[(np.array([[512, 768], [768, 768], [512, 1024], [768, 1024]], dtype=np.int32), | ||
np.array([[512, 768], [768, 768], [512, 1024], [768, 1024]], dtype=np.int32)), | ||
(np.array([[512, -768], [768, -768], [512, -512], [768, -512]], dtype=np.int32), | ||
np.array([[512, -768], [768, -768], [512, -512], [768, -512]], dtype=np.int32)), | ||
(np.array([[-1024, -768], [-768, -768], [-1024, -512], [-768, -512]], dtype=np.int32), | ||
np.array([[-1024, -768], [-768, -768], [-1024, -512], [-768, -512]], dtype=np.int32)), | ||
(np.array([[-1024, 768], [-768, 768], [-1024, 1024], [-768, 1024]], dtype=np.int32), | ||
np.array([[-1024, 768], [-768, 768], [-1024, 1024], [-768, 1024]], dtype=np.int32)), | ||
(np.array([[-256, 0], [0, 0], [-256, 256], [0, 256]], dtype=np.int32), | ||
np.array([[-256, 0], [0, 0], [-256, 256], [0, 256]], dtype=np.int32))] | ||
|
||
parameters_filter_cached_coordinates_empty_cached_tiles_dir = \ | ||
[([(512, 768), (768, 768), (512, 1024), (768, 1024)], | ||
[(512, 768), (768, 768), (512, 1024), (768, 1024)]), | ||
([(512, -768), (768, -768), (512, -512), (768, -512)], | ||
[(512, -768), (768, -768), (512, -512), (768, -512)]), | ||
([(-1024, -768), (-768, -768), (-1024, -512), (-768, -512)], | ||
[(-1024, -768), (-768, -768), (-1024, -512), (-768, -512)]), | ||
([(-1024, 768), (-768, 768), (-1024, 1024), (-768, 1024)], | ||
[(-1024, 768), (-768, 768), (-1024, 1024), (-768, 1024)]), | ||
([(-256, 0), (0, 0), (-256, 256), (0, 256)], | ||
[(-256, 0), (0, 0), (-256, 256), (0, 256)])] | ||
[(np.array([[512, 768], [768, 768], [512, 1024], [768, 1024]], dtype=np.int32), | ||
np.array([[512, 768], [768, 768], [512, 1024], [768, 1024]], dtype=np.int32)), | ||
(np.array([[512, -768], [768, -768], [512, -512], [768, -512]], dtype=np.int32), | ||
np.array([[512, -768], [768, -768], [512, -512], [768, -512]], dtype=np.int32)), | ||
(np.array([[-1024, -768], [-768, -768], [-1024, -512], [-768, -512]], dtype=np.int32), | ||
np.array([[-1024, -768], [-768, -768], [-1024, -512], [-768, -512]], dtype=np.int32)), | ||
(np.array([[-1024, 768], [-768, 768], [-1024, 1024], [-768, 1024]], dtype=np.int32), | ||
np.array([[-1024, 768], [-768, 768], [-1024, 1024], [-768, 1024]], dtype=np.int32)), | ||
(np.array([[-256, 0], [0, 0], [-256, 256], [0, 256]], dtype=np.int32), | ||
np.array([[-256, 0], [0, 0], [-256, 256], [0, 256]], dtype=np.int32))] | ||
|
||
parameters_filter_cached_coordinates_not_empty_cached_tiles_dir = \ | ||
[([(512, 768), (768, 768), (512, 1024), (768, 1024)], | ||
[(512, 768), (768, 768)]), | ||
([(512, -768), (768, -768), (512, -512), (768, -512)], | ||
[(512, -768), (768, -768)]), | ||
([(-1024, -768), (-768, -768), (-1024, -512), (-768, -512)], | ||
[(-1024, -768), (-768, -768)]), | ||
([(-1024, 768), (-768, 768), (-1024, 1024), (-768, 1024)], | ||
[(-1024, 768), (-768, 768)]), | ||
([(-256, 0), (0, 0), (-256, 256), (0, 256)], | ||
[(-256, 0), (0, 0)]), | ||
[(np.array([[512, 768], [768, 768], [512, 1024], [768, 1024]], dtype=np.int32), | ||
np.array([[512, 768], [768, 768]], dtype=np.int32)), | ||
(np.array([[512, -768], [768, -768], [512, -512], [768, -512]], dtype=np.int32), | ||
np.array([[512, -768], [768, -768]], dtype=np.int32)), | ||
(np.array([[-1024, -768], [-768, -768], [-1024, -512], [-768, -512]], dtype=np.int32), | ||
np.array([[-1024, -768], [-768, -768]], dtype=np.int32)), | ||
(np.array([[-1024, 768], [-768, 768], [-1024, 1024], [-768, 1024]], dtype=np.int32), | ||
np.array([[-1024, 768], [-768, 768]], dtype=np.int32)), | ||
(np.array([[-256, 0], [0, 0], [-256, 256], [0, 256]], dtype=np.int32), | ||
np.array([[-256, 0], [0, 0]], dtype=np.int32)), | ||
|
||
([(512, 1024), (768, 1024)], | ||
[]), | ||
([(512, -512), (768, -512)], | ||
[]), | ||
([(-1024, -512), (-768, -512)], | ||
[]), | ||
([(-1024, 1024), (-768, 1024)], | ||
[]), | ||
([(-256, 256), (0, 256)], | ||
[])] | ||
(np.array([[512, 1024], [768, 1024]], dtype=np.int32), | ||
np.empty(shape=(0, 2), dtype=np.int32)), | ||
(np.array([[512, -512], [768, -512]], dtype=np.int32), | ||
np.empty(shape=(0, 2), dtype=np.int32)), | ||
(np.array([[-1024, -512], [-768, -512]], dtype=np.int32), | ||
np.empty(shape=(0, 2), dtype=np.int32)), | ||
(np.array([[-1024, 1024], [-768, 1024]], dtype=np.int32), | ||
np.empty(shape=(0, 2), dtype=np.int32)), | ||
(np.array([[-256, 256], [0, 256]], dtype=np.int32), | ||
np.empty(shape=(0, 2), dtype=np.int32))] |
Oops, something went wrong.