Skip to content
Snippets Groups Projects
Commit e7befbaf authored by Ricardo Leal's avatar Ricardo Leal
Browse files

changed name FOCUS at SINQ to FOCUS Refs #7059

parent 6c945f8e
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ DECLARE_LOADALGORITHM(LoadPSI)
*/
LoadPSI::LoadPSI() {
m_instrumentName = "";
supportedInstruments.push_back("FOCUS at SINQ");
supportedInstruments.push_back("FOCUS");
}
//----------------------------------------------------------------------------------------------
......@@ -172,7 +172,9 @@ std::string LoadPSI::getInstrumentName(NeXus::NXEntry& entry) {
break;
}
}
//std::replace( instrumentName.begin(), instrumentName.end(), ' ', '_'); // replace all ' ' to '_'
long unsigned int pos = instrumentName.find(" ");
instrumentName = instrumentName.substr (0,pos);
return instrumentName;
}
......
<?xml version="1.0" encoding="utf-8"?>
<!-- For help on the notation used to specify an Instrument Definition File see http://www.mantidproject.org/IDF -->
<instrument name="FOCUS at SINQ" valid-from="1900-01-31 23:59:59" valid-to="2100-01-31 23:59:59" last-modified="2013-05-23 16:45:48">
<instrument name="FOCUS" valid-from="1900-01-31 23:59:59" valid-to="2100-01-31 23:59:59" last-modified="2013-05-24 08:42:47">
<!-- Author: ricardo.leal@ill.fr -->
<defaults>
<length unit="meter" />
......@@ -14,7 +14,7 @@
</reference-frame>
</defaults>
<component type="moderator">
<location z="-0.499700" />
<location z="-0.490000" />
</component>
<type name="moderator" is="Source"></type>
<!-- Sample position -->
......
......@@ -405,7 +405,8 @@
</instrument>
</facility>
<!-- The loader for SINQ is LoadPSI. Might have to changed in future. -->
<facility name="SINQ" FileExtensions=".hdf">
<instrument name="HRPT">
......@@ -451,7 +452,7 @@
<instrument name="FOCUS">
<technique>Neutron Spectroscopy</technique>
<technique>TOF Direct Geometry Spectroscopy</technique>
</instrument>
</instrument>
<instrument name="Rita-II">
<technique>Triple Axis Spectroscopy</technique>
......@@ -480,13 +481,6 @@
</facility>
<facility name="PSI" FileExtensions=".nxs,.hdf">
<instrument name="FOCUS at SINQ">
<technique>Neutron time-of-flight Spectroscopy</technique>
</instrument>
</facility>
<facility name="TEST" FileExtensions=".nxs,.dat,.xml">
<livedata listener="MockILiveListener"/>
......
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