Skip to content

Commit

Permalink
add mdoc file
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjinliu committed Sep 27, 2024
1 parent 2e3d657 commit c3f3b86
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/dummy.mrc.mdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
PixelSpacing = 5.34
Voltage = 300

[T = ... ]

[T = Tilt axis angle = 177.0, binning = 2]


[ZValue = 0]
MinMaxMean = 0, 100, 10.0
TiltAngle = -59.99

[ZValue = 1]
MinMaxMean = 0, 100, 10.0
TiltAngle = 0.01

[ZValue = 2]
MinMaxMean = 0, 100, 10.0
TiltAngle = 59.99
2 changes: 2 additions & 0 deletions tests/test_gui_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -1545,6 +1545,8 @@ def test_showing_widgets(ui: CylindraMainWidget):
loader = ui.FileMenu.open_image_loader()
loader.path = TEST_DIR / "13pf_MT.tif"
loader.scan_header()
assert loader.scale.scale_value == pytest.approx(1.052, abs=1e-5)
assert loader.tilt_model.yrange.value == pytest.approx((-60, 60), abs=1e-3)
loader.preview_image().close()
if sys.platform != "darwin":
# NOTE: On macOS, the draw event of vispy causes segmentation fault.
Expand Down

0 comments on commit c3f3b86

Please sign in to comment.