@@ -987,7 +987,7 @@ void MDA_IO<T_real>::_load_scalers(bool load_int_spec)
987987 cols = _mda_file->scan ->requested_points ;
988988
989989
990- for (int32_t i = 0 ; i < _mda_file->scan ->requested_points ; i++)
990+ for (int32_t i = 0 ; i < _mda_file->scan ->last_point ; i++)
991991 {
992992 for (int k = 0 ; k < _mda_file->scan ->number_detectors ; k++)
993993 {
@@ -1030,7 +1030,7 @@ void MDA_IO<T_real>::_load_scalers(bool load_int_spec)
10301030 {
10311031 int_spec = &(_integrated_spectra_map[d]);
10321032 }
1033- for (int32_t m = 0 ; m < _mda_file->scan ->sub_scans [i]->requested_points ; m++)
1033+ for (int32_t m = 0 ; m < _mda_file->scan ->sub_scans [i]->last_point ; m++)
10341034 {
10351035 (*int_spec)[m] += (_mda_file->scan ->sub_scans [i]->detectors_data [d][m]);
10361036 }
@@ -1058,9 +1058,9 @@ void MDA_IO<T_real>::_load_scalers(bool load_int_spec)
10581058 cols = _mda_file->scan ->sub_scans [0 ]->requested_points ;
10591059 }
10601060
1061- for (int32_t i = 0 ; i < _mda_file->scan ->requested_points ; i++)
1061+ for (int32_t i = 0 ; i < _mda_file->scan ->last_point ; i++)
10621062 {
1063- for (int32_t j = 0 ; j < _mda_file->scan ->sub_scans [i]->requested_points ; j++)
1063+ for (int32_t j = 0 ; j < _mda_file->scan ->sub_scans [i]->last_point ; j++)
10641064 {
10651065 for (int k = 0 ; k < _mda_file->scan ->sub_scans [i]->number_detectors ; k++)
10661066 {
@@ -1102,7 +1102,7 @@ void MDA_IO<T_real>::_load_scalers(bool load_int_spec)
11021102 {
11031103 int_spec = &(_integrated_spectra_map[d]);
11041104 }
1105- for (int32_t m = 0 ; m < _mda_file->scan ->sub_scans [i]->sub_scans [j]->requested_points ; m++)
1105+ for (int32_t m = 0 ; m < _mda_file->scan ->sub_scans [i]->sub_scans [j]->last_point ; m++)
11061106 {
11071107 (*int_spec)[m] += (_mda_file->scan ->sub_scans [i]->sub_scans [j]->detectors_data [d][m]);
11081108 }
0 commit comments