Skip to content

Commit 491d7ce

Browse files
committed
Add Description and remove redundant 0s
1 parent b9f79d2 commit 491d7ce

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Framework/Algorithms/inc/MantidAlgorithms/CreateMonteCarloWorkspace.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ namespace Mantid {
1616
namespace Algorithms {
1717
using namespace std;
1818

19-
/** CreateMonteCarloWorkspace : TODO: DESCRIPTION
19+
/** CreateMonteCarloWorkspace : The algorithm generates a simulated workspace by sampling from the probability
20+
distribution of input data, useful for testing of fitting functions and modeling.
21+
By generating a simulated dataset that mirrors the probability
22+
distribution of existing data.
2023
*/
2124
class MANTID_ALGORITHMS_DLL CreateMonteCarloWorkspace : public API::Algorithm {
2225
public:

Framework/Algorithms/src/CreateMonteCarloWorkspace.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ void CreateMonteCarloWorkspace::exec() {
122122
progress.report();
123123
std::this_thread::sleep_for(std::chrono::milliseconds(100));
124124

125-
MatrixWorkspace_sptr outputWs = WorkspaceFactory::Instance().create(instWs);
125+
MatrixWorkspace_sptr outputWs = WorkspaceFactory::Instance().create(instWs, 1);
126126
progress.report();
127127
std::this_thread::sleep_for(std::chrono::milliseconds(100));
128128

@@ -138,6 +138,9 @@ void CreateMonteCarloWorkspace::exec() {
138138
std::this_thread::sleep_for(std::chrono::milliseconds(100));
139139

140140
outputWs->mutableY(0) = outputY;
141+
142+
g_log.warning("Only the first spectrum is being plotted.");
143+
141144
progress.report();
142145
std::this_thread::sleep_for(std::chrono::milliseconds(100));
143146

0 commit comments

Comments
 (0)