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

hidden option -seed

parent 9f07a044
No related branches found
No related tags found
No related merge requests found
......@@ -49,8 +49,8 @@ static char *info[] = {
" -sec",
" If datafile does not contain time unit, times are by default assumed to",
" be in minutes. Use this option to set time unit to sec.",
" -seed=<seed for random number generator>",
" Computer clock and other information is used by default.",
// " -seed=<seed for random number generator>",
// " Computer clock and other information is used by default.",
" -stdoptions", // List standard options like --help, -v, etc
" ",
"TAC data must contain frame start and end times (PMOD or DFT format).",
......@@ -236,6 +236,13 @@ int main(int argc, char **argv)
}
/* Turn weighting off */
tac2.weighting=WEIGHTING_OFF;
if(verbose>10) {
printf("fileformat := %s\n", tacFormattxt(tac2.format));
printf("tacNr := %d\n", tac2.tacNr);
printf("sampleNr := %d\n", tac2.sampleNr);
printf("xunit := %s\n", unitName(tac2.tunit));
printf("yunit := %s\n", unitName(tac2.cunit));
}
/* Convert time units into minutes, only in original data for SD computation */
if(tacXUnitConvert(&tac, UNIT_MIN, &status)!=TPCERROR_OK) {
fprintf(stderr, "Error: %s.\n", errorMsg(status.error));
......@@ -344,6 +351,13 @@ int main(int argc, char **argv)
fprintf(stderr, "Error: cannot open file for writing (%s)\n", simfile);
tacFree(&tac); tacFree(&tac2); return(15);
}
if(verbose>9) {
printf("fileformat := %s\n", tacFormattxt(tac2.format));
printf("tacNr := %d\n", tac2.tacNr);
printf("sampleNr := %d\n", tac2.sampleNr);
printf("xunit := %s\n", unitName(tac2.tunit));
printf("yunit := %s\n", unitName(tac2.cunit));
}
int ret=tacWrite(&tac2, fp, TAC_FORMAT_UNKNOWN, 1, &status);
fclose(fp); tacFree(&tac); tacFree(&tac2);
if(ret!=TPCERROR_OK) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment