Open saraloo opened 8 months ago
yes, there should be a flag to disable this kind of logging, or (better) another way to capture stdout and stderr on windows
I just commented this line out for now and left a note that it only works on Mac. This was really just for testing and is very messy as the output doesn't go to a 'log' directory in the model_output as desired, just goes to $DATA_PATH. We really need a way to capture output to file in an organized way across both systems
To write log files we've added the following line in inference_main.R (line 132)
paste("2>&1 | tee log_inference_slot_",config$name,"_",opt$run_id, "_", flepi_slot, ".txt", sep=""),
This 2>&1 notation doesn't work in Windows - see attached image when Kimberlyn tried to run something.
This will likely not be an issue when we rewrite inference. But if there's a quick way to make this usable on both Windows and Mac now, that is probably useful?