geoschem / integrated_methane_inversion

Integrated Methane Inversion workflow repository.
https://imi.readthedocs.org
MIT License
25 stars 19 forks source link

Corrupted strings in imi_output.log #187

Closed msulprizio closed 3 months ago

msulprizio commented 5 months ago

Name and Institution (Required)

Name: Melissa Sulprizio Institution: Harvard / GCST

Description of your issue or question

I noticed some of the output in imi_output.log is getting corrupted. This is occurring in at least two places:

(1) When printing output from the IMI preview:

Screenshot 2024-02-09 at 10 15 14 AM

This appears to be caused by printing outstring3 = f"k = {np.round(k,5)} kg-1 m2 s" in imi_preview.py.

(2) When printing out which jacobian simulations have finished:

Screenshot 2024-02-09 at 10 16 32 AM

I suspect this one may be because too many jobs are attempting to write to imi_output.log at the same time. Perhaps we can suppress these messages to avoid corrupting the file?

nicholasbalasus commented 4 months ago

Hi Melissa - I have experienced this as well. For me, it sometimes shows up as the weird behavior of the error initially printing to the output log like this: image

And then updating to corrupted characters: image

Maybe related to https://github.com/geoschem/integrated_methane_inversion/issues/136

nicholasbalasus commented 3 months ago

Closed by #199