From 27cfa2098f557a1dbeac4a40075915838de3a59d Mon Sep 17 00:00:00 2001 From: Russell Taylor Date: Thu, 12 Dec 2013 16:40:39 -0500 Subject: [PATCH] Re #8613. Remove code that bails out early if no events in a bank. We need the bank name to be added to the list even if it's empty as it's checked for if the BankNames property has been set. There's already a check that means that no LoadBankFromDiskTask is created for the bank if it's empty (the original justification for adding this code in commit [36540217]). I don't think this change has much other effect, but I'll be relying heavily on the tests to confirm that given the horrific complexity of the file. --- Code/Mantid/Framework/DataHandling/src/LoadEventNexus.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Code/Mantid/Framework/DataHandling/src/LoadEventNexus.cpp b/Code/Mantid/Framework/DataHandling/src/LoadEventNexus.cpp index 1d78ba0b4b6d..dceaeb836c04 100644 --- a/Code/Mantid/Framework/DataHandling/src/LoadEventNexus.cpp +++ b/Code/Mantid/Framework/DataHandling/src/LoadEventNexus.cpp @@ -1425,11 +1425,6 @@ void LoadEventNexus::loadEvents(API::Progress * const prog, const bool monitors) // get the number of events std::size_t num = numEvents(file, hasTotalCounts, oldNeXusFileNames); - if (num == 0) - { - file.closeGroup(); - continue; - } bankNames.push_back( entry_name ); bankNumEvents.push_back(num); total_events += num;