Skip to content
Snippets Groups Projects
Commit 4749f34b authored by Dan Nixon's avatar Dan Nixon
Browse files

Merge pull request #13492 from mantidproject/feature/8590_peaks_workspace_column_name

Name of Detector ID column of PeaksWorkspace saved to Nexus
parents 05772e04 b4252b47
No related branches found
No related tags found
No related merge requests found
......@@ -656,7 +656,7 @@ void PeaksWorkspace::saveNexus(::NeXus::File *file) const {
// Detectors column
file->writeData("column_1", detectorID);
file->openData("column_1");
file->putAttr("name", "Dectector ID");
file->putAttr("name", "Detector ID");
file->putAttr("interpret_as", specifyInteger);
file->putAttr("units", "Not known");
file->closeData();
......
......@@ -155,6 +155,9 @@ public:
// Check detector IDs
TS_ASSERT_THROWS_NOTHING(nexusHelper.file->openData("column_1") );
std::string columnName;
TS_ASSERT_THROWS_NOTHING(nexusHelper.file->getAttr("name", columnName) );
TS_ASSERT_EQUALS( columnName, "Detector ID");
std::vector<int> detIDs;
TS_ASSERT_THROWS_NOTHING(nexusHelper.file->getData(detIDs));
nexusHelper.file->closeData();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment