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
7bf63176
Commit
7bf63176
authored
11 years ago
by
Gigg, Martyn Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Fix CustomWorkspace example to use new API. Refs #7344
The example used to old API and therefore did not work out of the box.
parent
63c3d3cc
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Mantid/Framework/Algorithms/src/CreateWorkspace.cpp
+3
-2
3 additions, 2 deletions
Code/Mantid/Framework/Algorithms/src/CreateWorkspace.cpp
with
3 additions
and
2 deletions
Code/Mantid/Framework/Algorithms/src/CreateWorkspace.cpp
+
3
−
2
View file @
7bf63176
/*WIKI*
Example of use in Python for create a simple histogram workspace
,
automatically populating the VerticalAxis with SpectraNumber values.
Example of use in Python for create a simple histogram workspace
and
automatically populating the VerticalAxis with SpectraNumber values.
<div style="border:1pt dashed black; background:#f9f9f9;padding: 1em 0;">
<source lang="python">
...
...
@@ -9,7 +9,8 @@ Example of use in Python for create a simple histogram workspace, automatically
dataY = [1,2,3,4,5,6,7,8,9,10,11,12]
dataE = [1,2,3,4,5,6,7,8,9,10,11,12]
CreateWorkspace('CreateWorkspace', dataX, dataY, dataE, NSpec=4,UnitX="Wavelength")
# The workspace will be named "dataWS"
dataWS = CreateWorkspace(DataX=dataX, DataY=dataY, DataE=dataE, NSpec=4,UnitX="Wavelength")
</source></div>
...
...
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