mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-12-15 01:21:30 +01:00
10 lines
294 B
Python
10 lines
294 B
Python
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
from aare import apply_calibration
|
|
import numpy as np
|
|
raw = np.zeros((5,10,10), dtype=np.uint16)
|
|
pedestal = np.zeros((3,10,10), dtype=np.float32)
|
|
calibration = np.ones((3,10,10), dtype=np.float32)
|
|
calibrated = apply_calibration(raw, pedestal, calibration,)
|
|
|