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
ab22cd70
Commit
ab22cd70
authored
4 years ago
by
Peterson, Peter
Browse files
Options
Downloads
Patches
Plain Diff
Add new required method for finding filename property
parent
7e27c698
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Framework/API/inc/MantidAPI/NexusFileLoader.h
+2
-0
2 additions, 0 deletions
Framework/API/inc/MantidAPI/NexusFileLoader.h
Framework/API/src/NexusFileLoader.cpp
+1
-4
1 addition, 4 deletions
Framework/API/src/NexusFileLoader.cpp
with
3 additions
and
4 deletions
Framework/API/inc/MantidAPI/NexusFileLoader.h
+
2
−
0
View file @
ab22cd70
...
...
@@ -18,6 +18,8 @@ public:
void
exec
()
override
final
;
// makes sure the NexusHDF5Descriptor is initialized
virtual
void
execLoader
()
=
0
;
// what would normally be called exec
// the name of the property that the NexusHDF5Descriptor should be created against
virtual
std
::
string
getFilenamePropertyName
()
const
=
0
;
boost
::
shared_ptr
<
Algorithm
>
createChildAlgorithm
(
const
std
::
string
&
name
,
const
double
startProgress
=
-
1.
,
const
double
endProgress
=
-
1.
,
const
bool
enableLogging
=
true
,
...
...
This diff is collapsed.
Click to expand it.
Framework/API/src/NexusFileLoader.cpp
+
1
−
4
View file @
ab22cd70
...
...
@@ -5,15 +5,12 @@
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#include
"MantidAPI/NexusFileLoader.h"
//include "MantidDataHandling/Load.h"
namespace
Mantid
::
DataHandling
{
void
NexusFileLoader
::
exec
()
{
// make sure the descriptor is initialized
if
(
!
m_fileInfo
)
{
// TODO move this functionality elsewhere
const
std
::
string
filePropName
=
"Filename"
;
//Load::findFilenamePropertyName(this);
const
std
::
string
filename
=
this
->
getPropertyValue
(
filePropName
);
const
std
::
string
filename
=
this
->
getPropertyValue
(
this
->
getFilenamePropertyName
());
m_fileInfo
=
std
::
make_shared
<
Mantid
::
Kernel
::
NexusHDF5Descriptor
>
(
filename
);
}
...
...
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