Skip to content

Commit ceed2e6

Browse files
committed
add tests for um scale .top and .stp files
1 parent 5d897ee commit ceed2e6

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

tests/resources/sample_1_um_scale.stp

2.01 MB
Binary file not shown.

tests/resources/sample_1_um_scale.top

515 KB
Binary file not shown.

tests/test_stp.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
"expected_image_dtype",
2020
"expected_image_sum",
2121
),
22-
[pytest.param("sample_0.stp", 0.9765625, (512, 512), float, -15070620.440757688)],
22+
[
23+
pytest.param("sample_0.stp", 0.9765625, (512, 512), float, -15070620.440757688),
24+
pytest.param("sample_1_um_scale.stp", 3.90625, (512, 512), float, -14439959.0625),
25+
],
2326
)
2427
def test_load_stp(
2528
file_name: str,

tests/test_top.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
"expected_image_dtype",
2020
"expected_image_sum",
2121
),
22-
[pytest.param("sample_0.top", 0.9765625, (512, 512), float, 6034386.429246264)],
22+
[
23+
pytest.param("sample_0.top", 0.9765625, (512, 512), float, 6034386.429246264),
24+
pytest.param("sample_1_um_scale.top", 3.90625, (512, 512), float, 125175.99999999997),
25+
],
2326
)
2427
def test_load_top(
2528
file_name: str,

0 commit comments

Comments
 (0)