Skip to content

Commit

Permalink
Run for project works
Browse files Browse the repository at this point in the history
  • Loading branch information
smistad committed May 31, 2022
1 parent 3af5622 commit c9fa5ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/gui/ProcessTab/ProcessWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ namespace fast {
m_currentWSI = 0;
m_batchProcesessing = true;
auto uid = m_mainWindow->getCurrentProject()->getAllWsiUids()[m_currentWSI];
processPipeline(m_runningPipeline->getFilename(), m_mainWindow->getCurrentProject()->getImage(uid)->get_image_pyramid());
processPipeline(pipelineFilename, m_mainWindow->getCurrentProject()->getImage(uid)->get_image_pyramid());
}

void ProcessWidget::selectWSI(std::shared_ptr<ImagePyramid> WSI) {
Expand Down
2 changes: 2 additions & 0 deletions source/utils/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <iostream>
#include <vector>
#include <string>
#include <time.h>

namespace fast {
/**
Expand All @@ -16,6 +17,7 @@ namespace fast {
* @return
*/
static std::string createRandomNumbers_(int n) {
srand(time(NULL));
std::string out;
for (int i = 0; i < n; i++) {
out.append(std::to_string(rand() % 10));
Expand Down

0 comments on commit c9fa5ab

Please sign in to comment.