Commit 1de9c5a0 authored by Mathieu Tillet's avatar Mathieu Tillet
Browse files

Add documentation and update a test

parent 4471be02
......@@ -90,7 +90,8 @@ private:
std::string m_resMode; ///< Resolution mode for D11 and D22
bool m_isTOF; ///< TOF or monochromatic flag
double m_sourcePos; ///< Source Z (for D33 TOF)
bool m_isD16Omega;
bool m_isD16Omega; ///< Data come from a D16 omega scan flag
LoadHelper m_loadHelper;
void setFinalProperties(const std::string &filename);
void setPixelSize();
......
......@@ -751,9 +751,8 @@ void LoadILLSANS::loadMetaData(const NeXus::NXEntry &entry,
// Get the starting date of the measure, as it is needed by the instrument and
// parameter loaders later
std::string startDate = entry.getString("start_time");
LoadHelper loadHelper = LoadHelper();
runDetails.addProperty<std::string>(
"run_start", loadHelper.dateTimeInIsoFormat(startDate));
"run_start", m_loadHelper.dateTimeInIsoFormat(startDate));
}
/**
......
......@@ -2181,7 +2181,8 @@ void InstrumentDefinitionParser::setFacing(Geometry::IComponent *comp,
* @param comp :: Some component
* @param pElem :: Poco::XML element that may hold \<parameter\> elements
* @param logfileCache :: Cache to add information about parameter to
*
* @param requestedDate :: Reference date to check the validity of the
* parameter against
* @throw InstrumentDefinitionError Thrown if issues with the content of XML
*instrument file
*/
......@@ -2527,6 +2528,8 @@ void InstrumentDefinitionParser::setLogfile(
*\<component-link\> elements
* @param progress :: Optional progress object for reporting progress to an
*algorithm
* @param requestedDate :: Date against which to check the validity of an IPF
*parameter
*/
void InstrumentDefinitionParser::setComponentLinks(
std::shared_ptr<Geometry::Instrument> &instrument,
......
......@@ -62,7 +62,7 @@ class SampleLogsModelTest(unittest.TestCase):
model = SampleLogsModel(ws)
log_names = model.get_log_names()
self.assertEqual(len(log_names), 293)
self.assertEqual(len(log_names), 294)
self.assertIn("Beam.sample_pressure", log_names)
values = model.get_log_display_values("Beam.sample_pressure")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment