Skip to content
Snippets Groups Projects
Commit 58c361a3 authored by Mathieu Tillet's avatar Mathieu Tillet
Browse files

Changed wavelength resolution default value for D16

parent 86c1289c
No related branches found
No related tags found
No related merge requests found
...@@ -670,7 +670,10 @@ void LoadILLSANS::loadMetaData(const NeXus::NXEntry &entry, ...@@ -670,7 +670,10 @@ void LoadILLSANS::loadMetaData(const NeXus::NXEntry &entry,
try { try {
wavelengthRes = entry.getFloat(entryResolution + "wave_length_res"); wavelengthRes = entry.getFloat(entryResolution + "wave_length_res");
} catch (const std::runtime_error &) { } catch (const std::runtime_error &) {
g_log.warning("Could not find wavelength resolution, assuming 10%"); if (m_instrumentName == "D16")
wavelengthRes = 0.01;
g_log.notice() << "Could not find wavelength resolution, assuming "
<< wavelengthRes * 100 << "%.\n";
} }
} }
// round also the wavelength res to avoid unnecessary rebinning during merge // round also the wavelength res to avoid unnecessary rebinning during merge
......
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