HopkinsIDD / flepiMoP

The Flexible Epidemic Modeling Pipeline
https://flepimop.org
GNU General Public License v3.0
9 stars 4 forks source link

Error with writing log files when calling 'inference_main.R' #169

Open saraloo opened 8 months ago

saraloo commented 8 months ago

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. image (7)

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?

jcblemai commented 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

alsnhll commented 7 months ago

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