From 7cfb2ca6ca3e14deebb20f52ab610f27000f48ec Mon Sep 17 00:00:00 2001
From: David Hammer <dhammer@mailbox.org>
Date: Thu, 9 Dec 2021 20:43:26 +0100
Subject: [PATCH] Better error message for wrong bad pixel map shape

---
 src/calng/AgipdCorrection.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/calng/AgipdCorrection.py b/src/calng/AgipdCorrection.py
index 7986831a..563aca4a 100644
--- a/src/calng/AgipdCorrection.py
+++ b/src/calng/AgipdCorrection.py
@@ -251,7 +251,7 @@ class AgipdGpuRunner(base_gpu.BaseGpuRunner):
                 )
             else:
                 raise ValueError(
-                    f"What in the world is this shape? {bad_pixels_map.shape}"
+                    f"Unsupported bad pixel map shape: {bad_pixels_map.shape}"
                 )
         else:
             self.bad_pixel_map_gpu |= cupy.asarray(
-- 
GitLab