Skip to content

Commit 7455d37

Browse files
committed
test save/load roundtrip w/ phase_flip.
1 parent 5948022 commit 7455d37

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/test_simulation.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,12 @@ def test_simulation_save_optics_block(tmp_path):
689689
np.arange(1, kv_ct + 1, dtype=int),
690690
)
691691

692+
# Test phase_flip after save/load round trip to ensure correct optics group mapping
693+
rln_src = RelionSource(starpath)
694+
np.testing.assert_allclose(
695+
sim.phase_flip().images[:], rln_src.phase_flip().images[:]
696+
)
697+
692698

693699
def test_default_symmetry_group():
694700
# Check that default is "C1".

0 commit comments

Comments
 (0)