Skip to content

Commit

Permalink
Add Description and remove redundant 0s
Browse files Browse the repository at this point in the history
  • Loading branch information
Despiix committed Nov 21, 2024
1 parent b9f79d2 commit 491d7ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ namespace Mantid {
namespace Algorithms {
using namespace std;

/** CreateMonteCarloWorkspace : TODO: DESCRIPTION
/** CreateMonteCarloWorkspace : The algorithm generates a simulated workspace by sampling from the probability
distribution of input data, useful for testing of fitting functions and modeling.
By generating a simulated dataset that mirrors the probability
distribution of existing data.
*/
class MANTID_ALGORITHMS_DLL CreateMonteCarloWorkspace : public API::Algorithm {
public:
Expand Down
5 changes: 4 additions & 1 deletion Framework/Algorithms/src/CreateMonteCarloWorkspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void CreateMonteCarloWorkspace::exec() {
progress.report();
std::this_thread::sleep_for(std::chrono::milliseconds(100));

MatrixWorkspace_sptr outputWs = WorkspaceFactory::Instance().create(instWs);
MatrixWorkspace_sptr outputWs = WorkspaceFactory::Instance().create(instWs, 1);
progress.report();
std::this_thread::sleep_for(std::chrono::milliseconds(100));

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

outputWs->mutableY(0) = outputY;

g_log.warning("Only the first spectrum is being plotted.");

progress.report();
std::this_thread::sleep_for(std::chrono::milliseconds(100));

Expand Down

0 comments on commit 491d7ce

Please sign in to comment.