new calib

This commit is contained in:
awe
2026-03-12 16:59:47 +03:00
parent 00144a21e6
commit dc19cfb35f
2 changed files with 45 additions and 24 deletions

View File

@ -44,6 +44,11 @@ class ProcessingTests(unittest.TestCase):
self.assertEqual(lower.shape, calib.shape)
self.assertEqual(upper.shape, calib.shape)
self.assertTrue(np.all(lower <= upper))
self.assertTrue(np.all(np.isfinite(upper)))
self.assertLess(
float(np.mean(np.abs(np.diff(upper, n=2)))),
float(np.mean(np.abs(np.diff(calib, n=2)))),
)
simple = normalize_by_calib(raw, calib + 10.0, norm_type="simple")
projector = normalize_by_calib(raw, calib, norm_type="projector")