Skip to content
Snippets Groups Projects
Commit 76441675 authored by Vesa Oikonen's avatar Vesa Oikonen
Browse files

bug fix in plotting fitted TACs

parent 58ef049d
No related branches found
No related tags found
No related merge requests found
......@@ -550,14 +550,11 @@ int main(int argc, char **argv)
} /* Next VOI */
if(verbose>0) {fprintf(stdout, "\n"); fflush(stdout);}
/* Delete reference region(s) from the results unless it already existed in data */
if(inputtype==5) {
/* Delete the reference region from the results */
resDelete(&res, ref);
} else {
for(int i=dft.voiNr-1; i>=0; i--) if(dft.voi[i].sw!=0) {
resDelete(&res, i);
}
ref=-1;
/* If reference data file was given and it contained several TACs then delete those too */
if(inputtype!=5) {
for(int i=dft.voiNr-1; i>=0; i--) if(dft.voi[i].sw!=0) resDelete(&res, i);
}
/*
......
......@@ -522,14 +522,11 @@ int main(int argc, char **argv)
} /* Next VOI */
if(verbose>0) {fprintf(stdout, "\n"); fflush(stdout);}
/* Delete reference region(s) from the results unless it already existed in data */
if(inputtype==5) {
/* Delete the reference region from the results */
resDelete(&res, ref);
} else {
for(int i=dft.voiNr-1; i>=0; i--) if(dft.voi[i].sw!=0) {
resDelete(&res, i);
}
ref=-1;
/* If reference data file was given and it contained several TACs then delete those too */
if(inputtype!=5) {
for(int i=dft.voiNr-1; i>=0; i--) if(dft.voi[i].sw!=0) resDelete(&res, i);
}
/*
......
......@@ -545,14 +545,11 @@ int main(int argc, char **argv)
} /* Next VOI */
if(verbose>0) {fprintf(stdout, "\n"); fflush(stdout);}
/* Delete reference region(s) from the results unless it already existed in data */
if(inputtype==5) {
/* Delete the reference region from the results */
resDelete(&res, ref);
} else {
for(int i=dft.voiNr-1; i>=0; i--) if(dft.voi[i].sw!=0) {
resDelete(&res, i);
}
ref=-1;
/* If reference data file was given and it contained several TACs then delete those too */
if(inputtype!=5) {
for(int i=dft.voiNr-1; i>=0; i--) if(dft.voi[i].sw!=0) resDelete(&res, i);
}
/*
......
......@@ -628,14 +628,11 @@ int main(int argc, char **argv)
} /* Next VOI */
if(verbose>0) {fprintf(stdout, "\n"); fflush(stdout);}
/* Delete reference region(s) from the results unless it already existed in data */
if(inputtype==5) {
/* Delete the reference region from the results */
resDelete(&res, ref);
} else {
for(int i=dft.voiNr-1; i>=0; i--) if(dft.voi[i].sw!=0) {
resDelete(&res, i);
}
ref=-1;
/* If reference data file was given and it contained several TACs then delete those too */
if(inputtype!=5) {
for(int i=dft.voiNr-1; i>=0; i--) if(dft.voi[i].sw!=0) resDelete(&res, i);
}
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment