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
6915083e
Commit
6915083e
authored
7 years ago
by
dymkowsk
Browse files
Options
Downloads
Patches
Plain Diff
Make sure intensities for S are correct when it is saved to ASCII file.
parent
74d2cfd4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Framework/PythonInterface/plugins/algorithms/Abins.py
+3
-2
3 additions, 2 deletions
Framework/PythonInterface/plugins/algorithms/Abins.py
with
3 additions
and
2 deletions
Framework/PythonInterface/plugins/algorithms/Abins.py
+
3
−
2
View file @
6915083e
...
...
@@ -14,7 +14,7 @@ from mantid.api import WorkspaceFactory, AnalysisDataService
# noinspection PyProtectedMember
from
mantid.api._api
import
WorkspaceGroup
from
mantid.simpleapi
import
CloneWorkspace
,
GroupWorkspaces
,
SaveAscii
,
Load
from
mantid.simpleapi
import
CloneWorkspace
,
GroupWorkspaces
,
SaveAscii
,
Load
,
Scale
from
mantid.kernel
import
logger
,
StringListValidator
,
Direction
,
StringArrayProperty
,
Atom
import
AbinsModules
...
...
@@ -235,7 +235,8 @@ class Abins(PythonAlgorithm):
num_workspaces
=
mtd
[
self
.
_out_ws_name
].
getNumberOfEntries
()
for
wrk_num
in
range
(
num_workspaces
):
wrk
=
mtd
[
self
.
_out_ws_name
].
getItem
(
wrk_num
)
SaveAscii
(
InputWorkspace
=
wrk
,
Filename
=
wrk
.
name
()
+
"
.dat
"
,
Separator
=
"
Space
"
,
WriteSpectrumID
=
False
)
SaveAscii
(
InputWorkspace
=
Scale
(
wrk
,
1.0
/
self
.
_bin_width
,
"
Multiply
"
),
Filename
=
wrk
.
name
()
+
"
.dat
"
,
Separator
=
"
Space
"
,
WriteSpectrumID
=
False
)
prog_reporter
.
report
(
"
All workspaces have been saved to ASCII files.
"
)
# 9) set OutputWorkspace
...
...
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