simonsobs / pspy

Python power spectrum code
Other
7 stars 5 forks source link

Flushes print command #50

Closed xgarrido closed 1 year ago

xgarrido commented 1 year ago

https://github.com/simonsobs/pspy/blob/9e0a6ff85d593b00b15b5bdb3c10c088dd26bcb6/pspy/so_mpi.py#L63

I think we should flush print message by adding flush=True in the print function (it is mainly relevant for so_mpi file) otherwise message will appear at the end of the mpi jobs

xgarrido commented 1 year ago

A better way than changing every print functions is to run python scripts with the -u option in order to unbuffered stdout/stderr. We just need to add the information within the README files