mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-02-18 22:38:41 +01:00
old function signature
This commit is contained in:
@@ -18,9 +18,10 @@ class CtbRawFile(_aare.CtbRawFile):
|
|||||||
super().__init__(fname)
|
super().__init__(fname)
|
||||||
self._chunk_size = chunk_size
|
self._chunk_size = chunk_size
|
||||||
self._transform = transform
|
self._transform = transform
|
||||||
|
print("so far so good")
|
||||||
if self._transform:
|
if self._transform:
|
||||||
if hasattr(self._transform, "compatibility") and callable(getattr(self._transform, "compatibility")):
|
if hasattr(self._transform, "compatibility") and callable(getattr(self._transform, "compatibility")):
|
||||||
self._transform.compatibility(self.master.digital_samples, self.master.analog_samples)
|
self._transform.compatibility(self.master.reading_mode)
|
||||||
|
|
||||||
|
|
||||||
def read_frame(self, frame_index: int | None = None ) -> tuple:
|
def read_frame(self, frame_index: int | None = None ) -> tuple:
|
||||||
@@ -48,10 +49,7 @@ class CtbRawFile(_aare.CtbRawFile):
|
|||||||
if header.shape == (1,):
|
if header.shape == (1,):
|
||||||
header = header[0]
|
header = header[0]
|
||||||
|
|
||||||
|
if self._transform:
|
||||||
if self._transform is not None:
|
|
||||||
if hasattr(self._transform, "data_compatibility") and callable(getattr(self._transform, "data_compatibility")):
|
|
||||||
self._transform.data_compatibility(data)
|
|
||||||
res = self._transform(data)
|
res = self._transform(data)
|
||||||
if isinstance(res, tuple):
|
if isinstance(res, tuple):
|
||||||
return header, *res
|
return header, *res
|
||||||
|
|||||||
Reference in New Issue
Block a user