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
e218a564
Commit
e218a564
authored
13 years ago
by
Karl Palmen
Browse files
Options
Downloads
Patches
Plain Diff
Early work on adding instrument data for re #4781
Signed-off-by:
Karl Palmen
<
karl.palmen@stfc.ac.uk
>
parent
2acf3b92
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
Code/Mantid/Framework/API/src/ExperimentInfo.cpp
+12
-0
12 additions, 0 deletions
Code/Mantid/Framework/API/src/ExperimentInfo.cpp
with
12 additions
and
0 deletions
Code/Mantid/Framework/API/src/ExperimentInfo.cpp
+
12
−
0
View file @
e218a564
...
@@ -572,6 +572,18 @@ namespace API
...
@@ -572,6 +572,18 @@ namespace API
file
->
writeData
(
"type"
,
"text/plain"
);
// mimetype
file
->
writeData
(
"type"
,
"text/plain"
);
// mimetype
file
->
closeGroup
();
file
->
closeGroup
();
// Add new group that could contain instrument data
file
->
makeGroup
(
"new_group"
,
"NXData"
,
true
);
std
::
vector
<
double
>
angles
(
6
);
for
(
int
i
=
0
;
i
<
6
;
i
++
)
angles
[
i
]
=
15.0
*
(
i
+
1
);
file
->
makeGroup
(
"Detector_1"
,
"NXDetector"
,
true
);
file
->
writeData
(
"Polar_angle"
,
angles
);
file
->
closeGroup
();
file
->
makeGroup
(
"Detector_2"
,
"NXDetector"
,
true
);
file
->
writeData
(
"Polar_angle"
,
angles
);
file
->
closeGroup
();
file
->
closeGroup
();
file
->
closeGroup
();
// (close the instrument group)
file
->
closeGroup
();
// (close the instrument group)
m_sample
->
saveNexus
(
file
,
"sample"
);
m_sample
->
saveNexus
(
file
,
"sample"
);
...
...
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