From 4683ca2fb1c68843419f4e7d24f7d1518ec2892e Mon Sep 17 00:00:00 2001
From: David Hammer <dhammer@mailbox.org>
Date: Sat, 5 Feb 2022 17:55:15 +0100
Subject: [PATCH] Update JungfrauCorrection to use unsafe_get

---
 src/calng/JungfrauCorrection.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/calng/JungfrauCorrection.py b/src/calng/JungfrauCorrection.py
index 58d481c9..e78d671b 100644
--- a/src/calng/JungfrauCorrection.py
+++ b/src/calng/JungfrauCorrection.py
@@ -307,9 +307,9 @@ class JungfrauCorrection(BaseCorrection):
     @property
     def input_data_shape(self):
         return (
-            self._schema_cache["dataFormat.memoryCells"],
-            self._schema_cache["dataFormat.pixelsY"],
-            self._schema_cache["dataFormat.pixelsX"],
+            self.unsafe_get("dataFormat.memoryCells"),
+            self.unsafe_get("dataFormat.pixelsY"),
+            self.unsafe_get("dataFormat.pixelsX"),
         )
 
     def __init__(self, config):
@@ -352,7 +352,7 @@ class JungfrauCorrection(BaseCorrection):
         buffer_handle, buffer_array = self._shmem_buffer.next_slot()
         self.kernel_runner.correct(self._correction_flag_enabled)
         self.kernel_runner.reshape(
-            output_order=self._schema_cache["dataFormat.outputAxisOrder"],
+            output_order=self.unsafe_get("dataFormat.outputAxisOrder"),
             out=buffer_array,
         )
 
@@ -364,8 +364,8 @@ class JungfrauCorrection(BaseCorrection):
                 preview_cell,
                 preview_pulse,
             ) = utils.pick_frame_index(
-                self._schema_cache["preview.selectionMode"],
-                self._schema_cache["preview.index"],
+                self.unsafe_get("preview.selectionMode"),
+                self.unsafe_get("preview.index"),
                 cell_table,
                 _pretend_pulse_table,
                 warn_func=self.log_status_warn,
-- 
GitLab