old function signature
All checks were successful
Build on RHEL8 / build (push) Successful in 2m19s
Build on RHEL9 / build (push) Successful in 2m30s
Run tests using data on local RHEL8 / build (push) Successful in 3m13s

This commit is contained in:
2026-02-04 11:30:44 +01:00
parent 5b5a0c63ce
commit a6c07d65fc

View File

@@ -18,9 +18,10 @@ class CtbRawFile(_aare.CtbRawFile):
super().__init__(fname)
self._chunk_size = chunk_size
self._transform = transform
print("so far so good")
if self._transform:
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:
@@ -48,10 +49,7 @@ class CtbRawFile(_aare.CtbRawFile):
if header.shape == (1,):
header = header[0]
if self._transform is not None:
if hasattr(self._transform, "data_compatibility") and callable(getattr(self._transform, "data_compatibility")):
self._transform.data_compatibility(data)
if self._transform:
res = self._transform(data)
if isinstance(res, tuple):
return header, *res