Fix a high priority bug where reconstructions will crash upon saving, and add test coverage to prevent a repeat

This commit is contained in:
levita_a committed 2026-04-20 15:40:55 +02:00
1 parent 65a75b5c7e
commit a516f418b9
3 files changed
+10 -1

No files matched your search

+3
View File
@@ -123,6 +123,9 @@ def test_lab_ptycho(lab_ptycho_cxi, reconstruction_device, show_plot):
time.sleep(3)
plt.close('all')
# Simply test that this does not fail
results = model.save_results(dataset)
# If this fails, the reconstruction has gotten worse
assert model.loss_history[-1] < 0.38
+3
View File
@@ -29,5 +29,8 @@ def test_simple_ptycho(lab_ptycho_cxi, reconstruction_device, show_plot):
time.sleep(3)
plt.close('all')
# Simply test that this does not fail
results = model.save_results(dataset)
# If this fails, the reconstruction got worse
assert model.loss_history[-1] < 6.5