Commit e6c5b547 authored by Du Rong's avatar Du Rong
Browse files

addLoadCSNSNexusAlgorithm #17

parent 5ae51116
......@@ -140,7 +140,8 @@ LoadCSNSNexus::getGPPDModules(const std::string &bankName) {
m_file->openGroup(m_entry, "NXentry");
m_file->openGroup("instrument", "NXinstrument");
auto entries = m_file->getEntries();
for (const auto &[name, _] : entries) {
for (auto it: entries) {
std::string name = it.first;
if (name.compare(0, 7, "module" + std::to_string(firstModuleId)) == 0 ||
name.compare(0, 7, "module" + std::to_string(secondModuleId)) == 0) {
data.emplace_back(name);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment