Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
cd321aec
Commit
cd321aec
authored
9 years ago
by
Raquel Alvarez Banos
Browse files
Options
Downloads
Patches
Plain Diff
Re #13968 Clang format
parent
bdef708c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Framework/Algorithms/test/RemoveExpDecayTest.h
+5
-4
5 additions, 4 deletions
Framework/Algorithms/test/RemoveExpDecayTest.h
with
5 additions
and
4 deletions
Framework/Algorithms/test/RemoveExpDecayTest.h
+
5
−
4
View file @
cd321aec
...
@@ -89,7 +89,8 @@ public:
...
@@ -89,7 +89,8 @@ public:
auto
ws
=
createWorkspace
(
2
,
50
);
auto
ws
=
createWorkspace
(
2
,
50
);
// First, run the algorithm without specifying any spectrum
// First, run the algorithm without specifying any spectrum
IAlgorithm_sptr
alg1
=
AlgorithmManager
::
Instance
().
create
(
"RemoveExpDecay"
);
IAlgorithm_sptr
alg1
=
AlgorithmManager
::
Instance
().
create
(
"RemoveExpDecay"
);
alg1
->
initialize
();
alg1
->
initialize
();
alg1
->
setChild
(
true
);
alg1
->
setChild
(
true
);
alg1
->
setProperty
(
"InputWorkspace"
,
ws
);
alg1
->
setProperty
(
"InputWorkspace"
,
ws
);
...
@@ -99,7 +100,8 @@ public:
...
@@ -99,7 +100,8 @@ public:
MatrixWorkspace_sptr
out1
=
alg1
->
getProperty
(
"OutputWorkspace"
);
MatrixWorkspace_sptr
out1
=
alg1
->
getProperty
(
"OutputWorkspace"
);
// Then run the algorithm on the second spectrum only
// Then run the algorithm on the second spectrum only
IAlgorithm_sptr
alg2
=
AlgorithmManager
::
Instance
().
create
(
"RemoveExpDecay"
);
IAlgorithm_sptr
alg2
=
AlgorithmManager
::
Instance
().
create
(
"RemoveExpDecay"
);
alg2
->
initialize
();
alg2
->
initialize
();
alg2
->
setChild
(
true
);
alg2
->
setChild
(
true
);
alg2
->
setProperty
(
"InputWorkspace"
,
ws
);
alg2
->
setProperty
(
"InputWorkspace"
,
ws
);
...
@@ -139,10 +141,9 @@ public:
...
@@ -139,10 +141,9 @@ public:
MatrixWorkspace_sptr
result
=
alg
->
getProperty
(
"OutputWorkspace"
);
MatrixWorkspace_sptr
result
=
alg
->
getProperty
(
"OutputWorkspace"
);
TS_ASSERT
(
result
);
TS_ASSERT
(
result
);
TS_ASSERT_EQUALS
(
result
->
YUnitLabel
(),
"Asymmetry"
);
TS_ASSERT_EQUALS
(
result
->
YUnitLabel
(),
"Asymmetry"
);
}
}
MatrixWorkspace_sptr
createWorkspace
(
size_t
nspec
,
size_t
maxt
)
{
MatrixWorkspace_sptr
createWorkspace
(
size_t
nspec
,
size_t
maxt
)
{
// Create a fake muon dataset
// Create a fake muon dataset
double
a
=
0.1
;
// Amplitude of the oscillations
double
a
=
0.1
;
// Amplitude of the oscillations
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment