-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0140fc4
commit 61ef7de
Showing
2 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.. algorithm:: | ||
|
||
.. summary:: | ||
|
||
.. alias:: | ||
|
||
.. properties:: | ||
|
||
Description | ||
----------- | ||
|
||
This algorithm is used to replicate a n dimensional :ref:`MDHistoWorkspace <MDHistoWorkspace>` in a stack to make a n+1 dimensional :ref:`MDHistoWorkspace <MDHistoWorkspace>`. A *ShapeWorkspace* provides the shape, extents, names and units of the final *OutputWorkspace*, which is also a :ref:`MDHistoWorkspace <MDHistoWorkspace>`. | ||
|
||
Validation | ||
###################################### | ||
|
||
The *InputWorkspace* and *ShapeWorkspace*, are expected to match over the initial n dimensions of the *InputWorkspace*. Names and Units are not checked, and are automatically taken from the *ShapeWorkspace*. However, Extents (Min, Max), and number of bins in each dimension are checked in order. The algorithm will fail to continue if these are not seen to match. | ||
|
||
|
||
Limitations | ||
##################### | ||
|
||
The current implementation of this algorithm will not handle dimensions that have been integrated out (have 1 bin) as though the dimensionality of the workspace is n-1. | ||
|
||
Usage | ||
----- | ||
|
||
**Example - Replicating a slice:** | ||
|
||
.. testcode:: ExampleSimple | ||
|
||
print "Hello World" | ||
|
||
Output: | ||
|
||
.. testoutput:: ExampleSimple | ||
|
||
Hello World | ||
|
||
.. categories:: | ||
|
||
.. sourcelink:: |