Skip to content
Snippets Groups Projects
Commit 25cbe981 authored by David Hammer's avatar David Hammer
Browse files

Revert "Apply md_additional_offset before multiplying in rel gain step"

This reverts commit b6111074.
parent 41f0d28a
No related branches found
No related tags found
1 merge request!12Snapshot: field test deployed version as of end of run 202201
...@@ -120,10 +120,10 @@ extern "C" { ...@@ -120,10 +120,10 @@ extern "C" {
} }
// TODO: baseline shift // TODO: baseline shift
if (corr_flags & REL_GAIN_PC) { if (corr_flags & REL_GAIN_PC) {
corrected *= rel_gain_pc_map[gm_map_index];
if (gain == 1) { if (gain == 1) {
corrected += md_additional_offset[map_index]; corrected += md_additional_offset[map_index];
} }
corrected *= rel_gain_pc_map[gm_map_index];
} }
if (corr_flags & GAIN_XRAY) { if (corr_flags & GAIN_XRAY) {
corrected = (corrected / rel_gain_xray_map[map_index]) * g_gain_value; corrected = (corrected / rel_gain_xray_map[map_index]) * g_gain_value;
......
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