Skip to content

Commit 1664a4c

Browse files
author
Arthur Glowacki
committed
Merge branch 'master' into polar
2 parents c047720 + 3fbc819 commit 1664a4c

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/core/process_streaming.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,15 @@ DLL_EXPORT data_struct::Stream_Block<T_real>* proc_spectra_block( data_struct::S
7373
{
7474
stream_block->fitting_blocks[itr.first].fit_counts[el_itr.first] = counts_dict[el_itr.first] / stream_block->spectra->elapsed_livetime();
7575
}
76-
stream_block->fitting_blocks[itr.first].fit_counts[STR_NUM_ITR] = counts_dict[STR_NUM_ITR];
76+
if(counts_dict.count(STR_NUM_ITR) > 0)
77+
{
78+
stream_block->fitting_blocks[itr.first].fit_counts[STR_NUM_ITR] = counts_dict[STR_NUM_ITR];
79+
}
80+
if(counts_dict.count(STR_RESIDUAL) > 0)
81+
{
82+
stream_block->fitting_blocks[itr.first].fit_counts[STR_RESIDUAL] = counts_dict[STR_RESIDUAL];
83+
}
84+
stream_block->fitting_blocks[itr.first].fit_counts[STR_TOTAL_FLUORESCENCE_YIELD] = stream_block->spectra->sum() / stream_block->spectra->elapsed_livetime();
7785
}
7886
return stream_block;
7987
}

0 commit comments

Comments
 (0)