From fecb5fd5d18aecfdfa1eb7cb0e39c944e70bf7dc Mon Sep 17 00:00:00 2001 From: Anton Piccardo-Selg <anton.piccardo-selg@tessella.com> Date: Thu, 23 Feb 2017 16:56:15 +0000 Subject: [PATCH] Refs #18981 Formatting --- Framework/DataHandling/src/LoadNexusLogs.cpp | 3 ++- Framework/DataHandling/test/LoadNexusLogsTest.h | 13 ++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Framework/DataHandling/src/LoadNexusLogs.cpp b/Framework/DataHandling/src/LoadNexusLogs.cpp index 7cbdbc6e007..305b7090fcd 100644 --- a/Framework/DataHandling/src/LoadNexusLogs.cpp +++ b/Framework/DataHandling/src/LoadNexusLogs.cpp @@ -390,7 +390,8 @@ void LoadNexusLogs::loadNPeriods( API::Run &run = workspace->mutableRun(); const std::string protonChargeByPeriodLabel = "proton_charge_by_period"; if (!run.hasProperty(protonChargeByPeriodLabel)) { - run.addProperty(new ArrayProperty<double>(protonChargeByPeriodLabel, protonChargeByPeriod)); + run.addProperty(new ArrayProperty<double>(protonChargeByPeriodLabel, + protonChargeByPeriod)); } file.closeGroup(); } catch (::NeXus::Exception &) { diff --git a/Framework/DataHandling/test/LoadNexusLogsTest.h b/Framework/DataHandling/test/LoadNexusLogsTest.h index 02680ca3917..ac217f46c63 100644 --- a/Framework/DataHandling/test/LoadNexusLogsTest.h +++ b/Framework/DataHandling/test/LoadNexusLogsTest.h @@ -12,7 +12,6 @@ #include "MantidDataObjects/Workspace2D.h" #include "MantidKernel/PhysicalConstants.h" - using namespace Mantid; using namespace Mantid::Geometry; using namespace Mantid::API; @@ -171,10 +170,14 @@ public: uniquePeriods.size()); const bool hasProtonChargeByPeriod = run.hasProperty("run_title"); - TSM_ASSERT("Should have extracted proton_charge_by_period log.", hasProtonChargeByPeriod); - - std::vector<double> protonChargeByPeriod = run.getPropertyValueAsType<std::vector<double>>("proton_charge_by_period"); - TSM_ASSERT_EQUALS("Should have four proton charge entries", 4, protonChargeByPeriod.size()); + TSM_ASSERT("Should have extracted proton_charge_by_period log.", + hasProtonChargeByPeriod); + + std::vector<double> protonChargeByPeriod = + run.getPropertyValueAsType<std::vector<double>>( + "proton_charge_by_period"); + TSM_ASSERT_EQUALS("Should have four proton charge entries", 4, + protonChargeByPeriod.size()); } void test_extract_run_title_from_event_nexus() { -- GitLab