Skip to content

Commit 87ac553

Browse files
committed
Add comment
1 parent 63fd327 commit 87ac553

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

neo/rawio/biocamrawio.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,4 +460,10 @@ def generate_synthetic_noise(rf, data, well_ID, start_frame, num_frames):
460460
else:
461461
data[ch_idx] = np.array(np.random.normal(median_mean, median_std, num_frames), dtype=np.uint16)
462462

463-
return data + 2048
463+
# Assuming a 12-bit unsigned to signed conversion downstream, the baseline should read at 2048 raw
464+
# However, synthetic noise is generated with a baseline of 0, which requires an offset of + 2048
465+
# See issue #1743
466+
467+
data = data + 2048
468+
469+
return data

0 commit comments

Comments
 (0)