Skip to content

Commit 790c0d3

Browse files
committed
Change inputs to all required
1 parent c8f1202 commit 790c0d3

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

src/Modules/Legacy/Forward/CalcTMP.cc

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#include <Modules/Legacy/Forward/CalcTMP.h>
3030
#include <Core/Datatypes/DenseMatrix.h>
31-
//#include <Packages/BioPSE/Core/Algorithms/NumApproximation/CalcTMP.h>
31+
#include <Modules/Legacy/Forward/CalcTMPAlgo.h>
3232

3333
using namespace SCIRun;
3434
using namespace SCIRun::Core::Datatypes;
@@ -69,29 +69,28 @@ CalcTMP::CalcTMP()
6969

7070
void CalcTMP::execute()
7171
{
72-
auto amplitudes = getOptionalInput(Amplitude);
73-
auto deps = getOptionalInput(Depolarization_Time);
74-
auto depslopes = getOptionalInput(Depolarization_Slope);;
75-
auto platslopes = getOptionalInput(Plateau_Slope);;
76-
auto reps = getOptionalInput(Repolarization_Time);;
77-
auto repslopes = getOptionalInput(Repolarization_Slope);;
78-
auto rests = getOptionalInput(Rest_Potential);;
72+
auto amplitudes = getRequiredInput(Amplitude);
73+
auto deps = getRequiredInput(Depolarization_Time);
74+
auto depslopes = getRequiredInput(Depolarization_Slope);
75+
auto platslopes = getRequiredInput(Plateau_Slope);
76+
auto reps = getRequiredInput(Repolarization_Time);
77+
auto repslopes = getRequiredInput(Repolarization_Slope);
78+
auto rests = getRequiredInput(Rest_Potential);
7979

8080
MatrixHandle tmps;
8181

8282
if (needToExecute())
8383
{
84-
/* TODO LATER
85-
algo_.calc_TMPs(amplitudes,
84+
const int numSamples = 500;
85+
BioPSE::CalcTMPAlgo::calc_TMPs(amplitudes,
8686
deps,
8787
depslopes,
8888
platslopes,
8989
reps,
9090
repslopes,
9191
rests,
92-
500,
93-
TMPs);
94-
*/
92+
numSamples,
93+
tmps);
9594

9695
sendOutput(TMPs, tmps);
9796
}

0 commit comments

Comments
 (0)