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
9330ca1c
Commit
9330ca1c
authored
10 years ago
by
Zhou, Wenduo
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/feature/9763_new_CSV_option'
parents
0ba76ed8
9d5e2ab0
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Mantid/Framework/DataHandling/src/SaveAscii.cpp
+18
-2
18 additions, 2 deletions
Code/Mantid/Framework/DataHandling/src/SaveAscii.cpp
with
18 additions
and
2 deletions
Code/Mantid/Framework/DataHandling/src/SaveAscii.cpp
+
18
−
2
View file @
9330ca1c
...
...
@@ -73,6 +73,8 @@ namespace Mantid
declareProperty
(
"ColumnHeader"
,
true
,
"If true, put column headers into file. "
);
declareProperty
(
"ICEFormat"
,
false
,
"If true, special column headers for ICE in file. "
);
}
/**
...
...
@@ -114,6 +116,20 @@ namespace Mantid
sep
=
" , "
;
}
std
::
string
comment
=
getPropertyValue
(
"CommentIndicator"
);
std
::
string
errstr
=
"E"
;
std
::
string
errstr2
=
""
;
std
::
string
comstr
=
" , "
;
bool
ice
=
getProperty
(
"ICEFormat"
);
if
(
ice
)
{
// overwrite properties so file can be read by ICE
errstr
=
"Y"
;
errstr2
=
"_error"
;
comstr
=
", "
;
writeHeader
=
true
;
write_dx
=
false
;
comment
=
"#features:"
;
}
// Create an spectra index list for output
std
::
set
<
int
>
idx
;
...
...
@@ -153,13 +169,13 @@ namespace Mantid
if
(
idx
.
empty
())
for
(
int
spec
=
0
;
spec
<
nSpectra
;
spec
++
)
{
file
<<
" ,
Y"
<<
spec
<<
" , E"
<<
spec
;
file
<<
comstr
<<
"
Y"
<<
spec
<<
comstr
<<
errstr
<<
spec
<<
errstr2
;
if
(
write_dx
)
file
<<
" , DX"
<<
spec
;
}
else
for
(
std
::
set
<
int
>::
const_iterator
spec
=
idx
.
begin
();
spec
!=
idx
.
end
();
++
spec
)
{
file
<<
" ,
Y"
<<
*
spec
<<
" , E"
<<
*
spec
;
file
<<
comstr
<<
"
Y"
<<
*
spec
<<
comstr
<<
errstr
<<
*
spec
<<
errstr2
;
if
(
write_dx
)
file
<<
" , DX"
<<
*
spec
;
}
file
<<
std
::
endl
;
...
...
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