File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,10 @@ namespace Mantid {
16
16
namespace Algorithms {
17
17
using namespace std ;
18
18
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.
20
23
*/
21
24
class MANTID_ALGORITHMS_DLL CreateMonteCarloWorkspace : public API::Algorithm {
22
25
public:
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ void CreateMonteCarloWorkspace::exec() {
122
122
progress.report ();
123
123
std::this_thread::sleep_for (std::chrono::milliseconds (100 ));
124
124
125
- MatrixWorkspace_sptr outputWs = WorkspaceFactory::Instance ().create (instWs);
125
+ MatrixWorkspace_sptr outputWs = WorkspaceFactory::Instance ().create (instWs, 1 );
126
126
progress.report ();
127
127
std::this_thread::sleep_for (std::chrono::milliseconds (100 ));
128
128
@@ -138,6 +138,9 @@ void CreateMonteCarloWorkspace::exec() {
138
138
std::this_thread::sleep_for (std::chrono::milliseconds (100 ));
139
139
140
140
outputWs->mutableY (0 ) = outputY;
141
+
142
+ g_log.warning (" Only the first spectrum is being plotted." );
143
+
141
144
progress.report ();
142
145
std::this_thread::sleep_for (std::chrono::milliseconds (100 ));
143
146
You can’t perform that action at this time.
0 commit comments