File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments