didnt save properly
All checks were successful
Build on RHEL8 / build (push) Successful in 2m25s
Build on RHEL9 / build (push) Successful in 2m31s
Run tests using data on local RHEL8 / build (push) Successful in 3m9s

This commit is contained in:
2026-02-04 17:24:52 +01:00
parent a6c07d65fc
commit a97b9bdd91
5 changed files with 6 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ NDArray<ssize_t, 2> GenerateMH02SingleCounterPixelMap();
NDArray<ssize_t, 3> GenerateMH02FourCounterPixelMap();
/**
* @brief Generate pixel map for Matterhorn02 detector
* @brief Generate pixel map for Matterhorn10 detector
* @param dynamic_range Dynamic range of the detector (16, 8, or 4)
* @param n_counters Number of counters (1 to 4)
*/

View File

@@ -18,7 +18,6 @@ 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.reading_mode)

View File

@@ -10,8 +10,8 @@ def test_read_rawfile_with_roi(test_data_path):
headers, frames = f.read()
assert headers.size == 10100
assert frames.shape == (10100, 256, 256)
assert frames.shape == (10100, 256, 256)
@pytest.mark.withdata
def test_read_rawfile_quad_eiger_and_compare_to_numpy(test_data_path):
@@ -36,7 +36,6 @@ def test_read_rawfile_quad_eiger_and_compare_to_numpy(test_data_path):
assert (image == image1).all()
@pytest.mark.withdata
def test_read_rawfile_eiger_and_compare_to_numpy(test_data_path):
d0 = test_data_path/'raw/eiger/Lab6_20500eV_2deg_20240629_d0_f0_7.raw'

View File

@@ -168,6 +168,8 @@ NDArray<ssize_t, 3> GenerateMH02FourCounterPixelMap() {
NDArray<ssize_t, 2> GenerateMatterhorn10PixelMap(const size_t dynamic_range,
const size_t n_counters) {
// Matterhorn10 uses transceiver samples (each transceiver sample has 1-4 channels storing 8 bytes each)
constexpr size_t n_cols = Matterhorn10::nCols;
constexpr size_t n_rows = Matterhorn10::nRows;
NDArray<ssize_t, 2> pixel_map(

View File

@@ -166,7 +166,7 @@ TEST_CASE("Expand 4 bit values packed into 8 bit to 8 bit values") {
uint8_t expected_output[] = {
0x0, 0x0, 0x0, 0xF, 0xF, 0xF,
0x0, 0x0, 0x0, 0xF, 0xF, 0xF}; // is it first little or big endian?
0x0, 0x0, 0x0, 0xF, 0xF, 0xF}; // assuming little endian
for (size_t i = 0; i < 12; ++i) {
CHECK(out(i) == expected_output[i]);