Skip to content
Snippets Groups Projects
Commit 6b587da8 authored by Matthew D Jones's avatar Matthew D Jones
Browse files

Merge pull request #14314 from mantidproject/feature/14282_fix_transmission_label_in_CANSAS

Set units instead of unit label
parents c0bfd5b5 e7deef0e
No related merge requests found
...@@ -194,7 +194,7 @@ void SaveCanSAS1D2::createSASTransElement(std::string &sasTrans, ...@@ -194,7 +194,7 @@ void SaveCanSAS1D2::createSASTransElement(std::string &sasTrans,
std::stringstream trans; std::stringstream trans;
trans << "\n\t\t<SAStransmission_spectrum name=\"" << name << "\">"; trans << "\n\t\t<SAStransmission_spectrum name=\"" << name << "\">";
std::string t_unit = m_ws->YUnitLabel(); std::string t_unit = m_ws->YUnit();
std::string lambda_unit = m_ws->getAxis(0)->unit()->label(); std::string lambda_unit = m_ws->getAxis(0)->unit()->label();
if (t_unit.empty()) if (t_unit.empty())
t_unit = "none"; t_unit = "none";
......
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