Skip to content

Commit 44c9d5b

Browse files
committed
Real port names
1 parent a886a90 commit 44c9d5b

File tree

2 files changed

+23
-35
lines changed

2 files changed

+23
-35
lines changed

src/Modules/Legacy/Forward/CalcTMP.cc

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -56,39 +56,29 @@ CalcTMP::CalcTMP()
5656
: Module(staticInfo_)
5757
{
5858
INITIALIZE_PORT(Amplitude);
59-
INITIALIZE_PORT(i1);
60-
INITIALIZE_PORT(i2);
61-
INITIALIZE_PORT(i3);
62-
INITIALIZE_PORT(i4);
63-
INITIALIZE_PORT(i5);
64-
INITIALIZE_PORT(i6);
59+
INITIALIZE_PORT(Depolarization_Time);
60+
INITIALIZE_PORT(Depolarization_Slope);
61+
INITIALIZE_PORT(Plateau_Slope);
62+
INITIALIZE_PORT(Repolarization_Time);
63+
INITIALIZE_PORT(Repolarization_Slope);
64+
INITIALIZE_PORT(Rest_Potential);
6565
INITIALIZE_PORT(TMPs);
6666
//algo_.set_progress_reporter(this);
6767
}
6868

6969

7070
void CalcTMP::execute()
7171
{
72-
MatrixHandle amplitudes = getRequiredInput(Amplitude);
73-
auto deps = getOptionalInput(i1);
74-
75-
76-
77-
78-
MatrixHandle depslopes;
79-
MatrixHandle platslopes;
80-
MatrixHandle reps;
81-
MatrixHandle repslopes;
82-
MatrixHandle rests;
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);;
79+
8380
MatrixHandle tmps;
84-
85-
// get_input_handle("Depolarization Time", deps, false);
86-
// get_input_handle("Depolarization Slope", depslopes, false);
87-
// get_input_handle("Plateau Slope", platslopes, false);
88-
// get_input_handle("Repolarization Time", reps, false);
89-
// get_input_handle("Repolarization Slope", repslopes, false);
90-
// get_input_handle("Rest Potential", rests, false);
91-
81+
9282
if (needToExecute())
9383
{
9484
/* TODO LATER

src/Modules/Legacy/Forward/CalcTMP.h

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,16 @@ namespace SCIRun {
4242
{
4343
public:
4444
CalcTMP();
45-
virtual void setStateDefaults() {}
46-
virtual void execute();
45+
virtual void setStateDefaults() override {}
46+
virtual void execute() override;
4747

4848
INPUT_PORT(0, Amplitude, Matrix);
49-
//TODO: real names
50-
INPUT_PORT(1, i1, Matrix);
51-
INPUT_PORT(2, i2, Matrix);
52-
INPUT_PORT(3, i3, Matrix);
53-
INPUT_PORT(4, i4, Matrix);
54-
INPUT_PORT(5, i5, Matrix);
55-
INPUT_PORT(6, i6, Matrix);
56-
//end todo names
49+
INPUT_PORT(1, Depolarization_Time, Matrix);
50+
INPUT_PORT(2, Depolarization_Slope, Matrix);
51+
INPUT_PORT(3, Plateau_Slope, Matrix);
52+
INPUT_PORT(4, Repolarization_Time, Matrix);
53+
INPUT_PORT(5, Repolarization_Slope, Matrix);
54+
INPUT_PORT(6, Rest_Potential, Matrix);
5755
OUTPUT_PORT(0, TMPs, Matrix);
5856

5957
static const Dataflow::Networks::ModuleLookupInfo staticInfo_;

0 commit comments

Comments
 (0)