fixed wrong path in NeXus IDF V2.

This commit is contained in:
2026-02-05 12:59:10 +01:00
parent 88b5e492dd
commit 643be9738f

View File

@@ -3892,7 +3892,7 @@ void nxH5::PNeXus::Dump()
auto raw_time = std::any_cast<PNXdata<float>>(fDataMap["/raw_data_1/instrument/detector_1/raw_time"]);
const auto& data = raw_time.GetData();
// Check for attributes
// Check for attributes
if (raw_time.HasAttribute("units")) {
try {
auto units = std::any_cast<std::string>(raw_time.GetAttribute("units"));
@@ -3902,7 +3902,7 @@ void nxH5::PNeXus::Dump()
}
}
// dump the first couple of raw_times
// dump the first couple of raw_times
std::cout << " ";
for (unsigned int i=0; i<first_good_bin+5; i++)
std::cout << data[i] << ", ";
@@ -3931,10 +3931,10 @@ void nxH5::PNeXus::Dump()
std::cout << std::endl << " dead_time:";
std::cout << std::endl;
try {
auto dead_time = std::any_cast<PNXdata<float>>(fDataMap["/raw_data_1/instrument/detector_1/dead_time"]);
auto dead_time = std::any_cast<PNXdata<float>>(fDataMap["/raw_data_1/detector_1/dead_time"]);
const auto& data = dead_time.GetData();
// dump the first couple of raw_times
// dump the first couple of raw_times
std::cout << " ";
for (unsigned int i=0; i<first_good_bin+5; i++)
std::cout << data[i] << ", ";