Skip to content

Commit 99e32a6

Browse files
committed
add test for extracting bbox from template
1 parent 28e59b8 commit 99e32a6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import pytest
2+
import siibra
3+
from nibabel import Nifti1Image
4+
5+
6+
vois = [
7+
siibra.locations.BoundingBox(
8+
(-54.90, -29.47, 12.66), (12.69, 35.12, 20.24), "bigbrain"
9+
),
10+
siibra.locations.BoundingBox(
11+
(-154.90, -29.47, 12.66), (112.69, 38.12, 80.24), "bigbrain"
12+
),
13+
siibra.locations.BoundingBox(
14+
(-54.90, -29.47, 12.66), (12.69, 38.12, 80.24), "bigbrain"
15+
),
16+
]
17+
18+
19+
@pytest.mark.parametrize("voi", vois)
20+
def test_fetching_voi(voi):
21+
assert isinstance(
22+
voi.space.get_template().fetch(voi=voi, resolution_mm=0.52), Nifti1Image
23+
)

0 commit comments

Comments
 (0)