Skip to content

Commit

Permalink
deactivate output log for speed
Browse files Browse the repository at this point in the history
  • Loading branch information
oguyon committed Oct 4, 2023
1 parent 0849233 commit a7ab845
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/CommandLineInterface/streamCTRL/streamCTRL_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ void *streamCTRL_scan(

while(streaminfoproc->loop == 1)
{
EXECUTE_SYSTEM_COMMAND("echo \" \" >> IDlog.txt");
EXECUTE_SYSTEM_COMMAND("echo \"[%ld] loopSTART\" >> IDlog.txt", scaniter);
//EXECUTE_SYSTEM_COMMAND("echo \" \" >> IDlog.txt");
//EXECUTE_SYSTEM_COMMAND("echo \"[%ld] loopSTART\" >> IDlog.txt", scaniter);

long NBsindex = 0;

Expand Down Expand Up @@ -89,7 +89,7 @@ void *streamCTRL_scan(
streaminfoproc->filter,
streaminfoproc->namefilter);

EXECUTE_SYSTEM_COMMAND("echo \"NBsindex = %ld\" >> IDlog.txt", NBsindex);
//EXECUTE_SYSTEM_COMMAND("echo \"NBsindex = %ld\" >> IDlog.txt", NBsindex);

// write stream list to file if applicable
// ususally used for debugging only
Expand Down Expand Up @@ -138,10 +138,10 @@ void *streamCTRL_scan(
// Check if already in memory
//
ID = image_ID_from_images(images, streaminfo[sindex].sname);
EXECUTE_SYSTEM_COMMAND("echo \" %ld %s : ID = %ld\" >> IDlog.txt",
/*EXECUTE_SYSTEM_COMMAND("echo \" %ld %s : ID = %ld\" >> IDlog.txt",
sindex,
streaminfo[sindex].sname,
ID);
ID);*/

// if not in local memory, try to connect to stream
//
Expand All @@ -154,8 +154,8 @@ void *streamCTRL_scan(
{
return NULL;
}
EXECUTE_SYSTEM_COMMAND("echo \" %ld get ID = %ld\" >> IDlog.txt",
sindex, ID);
/*EXECUTE_SYSTEM_COMMAND("echo \" %ld get ID = %ld\" >> IDlog.txt",
sindex, ID);*/


streaminfo[sindex].ISIOretval =
Expand Down Expand Up @@ -189,8 +189,8 @@ void *streamCTRL_scan(

if(streaminfo[sindex].ISIOretval == IMAGESTREAMIO_SUCCESS )
{
EXECUTE_SYSTEM_COMMAND("echo \" %ld ISIO OK\" >> IDlog.txt",
sindex);
/*EXECUTE_SYSTEM_COMMAND("echo \" %ld ISIO OK\" >> IDlog.txt",
sindex);*/

float gainv = 1.0;
if(firstIter == 0)
Expand All @@ -207,11 +207,11 @@ void *streamCTRL_scan(
streaminfo[sindex].cnt0 = images[ID].md->cnt0;
streaminfo[sindex].datatype = images[ID].md->datatype;
}
else
/*else
{
EXECUTE_SYSTEM_COMMAND("echo \" %ld ISIO NOTOK\" >> IDlog.txt",
sindex);
}
}*/
}

streaminfo[sindex].ID = ID;
Expand Down Expand Up @@ -403,7 +403,7 @@ void *streamCTRL_scan(
streaminfoproc->NBstream = NBsindex;
streaminfoproc->loopcnt++;

EXECUTE_SYSTEM_COMMAND("echo \"[%ld] loopEND\" >> IDlog.txt", scaniter);
//EXECUTE_SYSTEM_COMMAND("echo \"[%ld] loopEND\" >> IDlog.txt", scaniter);
scaniter++;


Expand Down

0 comments on commit a7ab845

Please sign in to comment.