Skip to content
Snippets Groups Projects
Commit 4c60cc43 authored by Philipp Schmidt's avatar Philipp Schmidt
Browse files

Fix selection of gain in lpdalgs

parent b42f4478
1 merge request!672[LPD] New correction notebook
......@@ -47,8 +47,8 @@ def correct_lpd_frames(
for ss in range(in_raw.shape[1]):
for fs in range(in_raw.shape[2]):
# Decode intensity and gain from raw data.
data = <data_t>(in_raw[frame, ss, fs] & 0x0000111111111111)
gain = <gain_t>((in_raw[frame, ss, fs] & 0x0000000000000011
data = <data_t>(in_raw[frame, ss, fs] & 0xFFF)
gain = <gain_t>((in_raw[frame, ss, fs] & 0x3000) >> 12)
if gain <= 2:
mask = ccv_mask[ss, fs, cell, gain]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment