Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/feature/9592_remove_final_wiki'
- Loading branch information
Showing
13 changed files
with
153 additions
and
61 deletions.
There are no files selected for viewing
5 changes: 0 additions & 5 deletions
5
Code/Mantid/Framework/Algorithms/src/RemoveWorkspaceHistory.cpp
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
6 changes: 0 additions & 6 deletions
6
Code/Mantid/Framework/Crystal/inc/MantidCrystal/CentroidPeaks.h
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
12 changes: 0 additions & 12 deletions
12
Code/Mantid/Framework/DataHandling/src/CreateChunkingFromInstrument.cpp
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
7 changes: 0 additions & 7 deletions
7
Code/Mantid/Framework/DataHandling/src/ExtractMonitorWorkspace.cpp
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
/*WIKI* | ||
*WIKI*/ | ||
#include "HelloWorldAlgorithm.h" | ||
|
||
namespace Mantid | ||
|
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
/*WIKI* | ||
*WIKI*/ | ||
#include "ModifyData.h" | ||
|
||
namespace Mantid | ||
|
7 changes: 0 additions & 7 deletions
7
Code/Mantid/Framework/UserAlgorithms/Muon_ExpDecayOscTest.cpp
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
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
/*WIKI* | ||
*WIKI*/ | ||
#include "WorkspaceAlgorithm.h" | ||
|
||
namespace Mantid | ||
|
55 changes: 55 additions & 0 deletions
55
Code/Mantid/docs/source/algorithms/CreateChunkingFromInstrument-v1.rst
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,55 @@ | ||
.. algorithm:: | ||
|
||
.. summary:: | ||
|
||
.. alias:: | ||
|
||
.. properties:: | ||
|
||
Description | ||
----------- | ||
|
||
Workflow algorithm to determine chunking strategy | ||
for event nexus file. This will break up the instrument | ||
into logical components according to the instrument hierarchy. | ||
|
||
This algorithm does assume that there are components in the | ||
geometry named "bank#" and returns a table workspace of those | ||
names. Trying this on an instrument without components named | ||
that will generate an exception. Also, requesting "ChunkBy=All" | ||
will return an empty table workspace. | ||
|
||
Usage | ||
----- | ||
|
||
**Example: Powgen** | ||
|
||
.. testcode:: ExPowgen | ||
|
||
ws = CreateChunkingFromInstrument(InstrumentName="pg3", ChunkBy="Group") | ||
print "Created %i Chunks" % ws.rowCount() | ||
|
||
Output: | ||
|
||
.. testoutput:: ExPowgen | ||
|
||
Created 4 Chunks | ||
|
||
**Example: Snap** | ||
|
||
.. testcode:: ExSnap | ||
|
||
ws = CreateChunkingFromInstrument(InstrumentName="snap", ChunkNames="East,West", MaxBankNumber=20) | ||
print "Created %i Chunks" % ws.rowCount() | ||
|
||
Output: | ||
|
||
.. testoutput:: ExSnap | ||
|
||
Created 2 Chunks | ||
|
||
.. categories:: | ||
|
||
|
||
|
||
|
35 changes: 35 additions & 0 deletions
35
Code/Mantid/docs/source/algorithms/ExtractMonitorWorkspace-v1.rst
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,35 @@ | ||
.. algorithm:: | ||
|
||
.. summary:: | ||
|
||
.. alias:: | ||
|
||
.. properties:: | ||
|
||
Description | ||
----------- | ||
|
||
This algorithm looks for an internally-stored monitor workspace on the input workspace and | ||
sets it as the output workspace if found. The input workspace will no longer hold a reference | ||
to the monitor workspace after this algorithm has been run on it. | ||
If no monitor workspace is present the algorithm will fail. | ||
|
||
This does not extract monitor data that is stored with the detector data in the workspace. | ||
|
||
Usage | ||
----- | ||
|
||
**Example: Extracting an internally stored monitor workspace** | ||
|
||
.. This is encoded as a non tested block as it is currently not possible to create a workspace with an internal monitor workspace in python. | ||
.. code-block:: python | ||
#If no monitor workspace is present the algorithm will fail. | ||
wsMonitor = ExtractMonitorWorkspace(ws) | ||
.. categories:: | ||
|
||
|
||
|
||
|
63 changes: 63 additions & 0 deletions
63
Code/Mantid/docs/source/algorithms/RemoveWorkspaceHistory-v1.rst
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,63 @@ | ||
.. algorithm:: | ||
|
||
.. summary:: | ||
|
||
.. alias:: | ||
|
||
.. properties:: | ||
|
||
Description | ||
----------- | ||
|
||
Removes all algorithm history records from a given workspace. This includes all workflow and child algorithm history records. After this algorithm has been run, the workspace will not be reproducable | ||
from its history. Note that this algorithm will not remove the environment history associated with a workspace. | ||
|
||
Usage | ||
----- | ||
|
||
**Example:** | ||
|
||
.. testcode:: ExStripHistory | ||
|
||
def print_workspace_history(ws): | ||
history = ws.getHistory() | ||
print "Workspace %s has %i algorithms in it's history" %(ws,history.size()) | ||
for alg in history.getAlgorithmHistories(): | ||
print " " + alg.name() | ||
|
||
# create histogram workspace | ||
ws = CreateSampleWorkspace(NumBanks=1,BankPixelWidth=1) | ||
|
||
#create some history by running a few algs | ||
ws = ConvertUnits(ws,"Wavelength") | ||
ws = Rebin(ws,Params=1) | ||
ws += ws | ||
ws *= ws | ||
print_workspace_history(ws) | ||
|
||
RemoveWorkspaceHistory(ws) | ||
|
||
print "After RemoveWorkspaceHistory" | ||
print_workspace_history(ws) | ||
|
||
|
||
Output: | ||
|
||
.. testoutput:: ExStripHistory | ||
|
||
Workspace ws has 5 algorithms in it's history | ||
CreateSampleWorkspace | ||
ConvertUnits | ||
Rebin | ||
Plus | ||
Multiply | ||
After RemoveWorkspaceHistory | ||
Workspace ws has 1 algorithms in it's history | ||
RemoveWorkspaceHistory | ||
|
||
|
||
.. categories:: | ||
|
||
|
||
|