@@ -97,7 +97,7 @@ void LoadBankFromDiskTask::loadPulseTimes(Nexus::File &file) {
97
97
}
98
98
99
99
// Not found? Need to load and add it
100
- thisBankPulseTimes = std::make_shared<BankPulseTimes>(boost::ref ( file) , m_framePeriodNumbers);
100
+ thisBankPulseTimes = std::make_shared<BankPulseTimes>(file, m_framePeriodNumbers);
101
101
m_loader.m_bankPulseTimes .emplace_back (thisBankPulseTimes);
102
102
}
103
103
@@ -190,7 +190,7 @@ std::unique_ptr<std::vector<uint32_t>> LoadBankFromDiskTask::loadEventId(Nexus::
190
190
191
191
// determine the range of pixel ids
192
192
{
193
- const auto [min_id, max_id] = Mantid::Kernel::parallel_minmax<uint32_t >(event_id.get (), 1 );
193
+ const auto [min_id, max_id] = Mantid::Kernel::parallel_minmax<uint32_t >(event_id.get ());
194
194
m_min_id = min_id;
195
195
m_max_id = max_id;
196
196
}
@@ -470,14 +470,13 @@ void LoadBankFromDiskTask::run() {
470
470
// this method is for unweighted events that the user wants compressed on load
471
471
472
472
// TODO should this be created elsewhere?
473
- const auto [tof_min, tof_max] =
474
- std::minmax_element (event_time_of_flight_shrd->cbegin (), event_time_of_flight_shrd->cend ());
473
+ const auto [tof_min, tof_max] = Mantid::Kernel::parallel_minmax (event_time_of_flight.get ());
475
474
476
475
const bool log_compression = (m_loader.alg ->compressTolerance < 0 );
477
476
478
477
// reduce tof range if filtering was requested
479
- auto tof_min_fixed = * tof_min;
480
- auto tof_max_fixed = * tof_max;
478
+ auto tof_min_fixed = tof_min;
479
+ auto tof_max_fixed = tof_max;
481
480
if (m_loader.alg ->filter_tof_range ) {
482
481
if (m_loader.alg ->filter_tof_max != EMPTY_DBL ())
483
482
tof_max_fixed = std::min<float >(tof_max_fixed, static_cast <float >(m_loader.alg ->filter_tof_max ));
0 commit comments