diff --git a/Framework/DataHandling/src/LoadEventNexus.cpp b/Framework/DataHandling/src/LoadEventNexus.cpp index 1434bc118a34fd182809ffcf2df55c737f86a615..b55fb9ccc4419827a3a4478d092b9d90f451ada8 100644 --- a/Framework/DataHandling/src/LoadEventNexus.cpp +++ b/Framework/DataHandling/src/LoadEventNexus.cpp @@ -837,7 +837,6 @@ void LoadEventNexus::loadEvents(API::Progress *const prog, std::string classType = monitors ? "NXmonitor" : "NXevent_data"; ::NeXus::Info info; bool oldNeXusFileNames(false); - bool hasTotalCounts(true); bool haveWeights = false; auto firstPulseT = DateAndTime::maximum(); @@ -868,8 +867,8 @@ void LoadEventNexus::loadEvents(API::Progress *const prog, } // get the number of events const std::string prefix = "/" + m_top_entry_name + "/" + entry_name; - std::size_t num = numEvents(*m_file, hasTotalCounts, oldNeXusFileNames, - prefix, *descriptor); + std::size_t num = + numEvents(*m_file, true, oldNeXusFileNames, prefix, *descriptor); bankNames.emplace_back(entry_name); bankNumEvents.emplace_back(num);