-
Notifications
You must be signed in to change notification settings - Fork 299
Open
Labels
Description
As mintpy uses print() statements to display progress to the screen (STDOUT), this information gets scrambled on clusters. For example under LSF bpeek command does not properly relay where mintpy is in the processing. I see two ways to resolve this.
- Proper logging using the python logging modules
- adding
sys.stdout.flush()at the end of each print statement.
Obviously, (2) is much easier than (1). I will this unless somebody yells. I unlikely will do the entire code but only those scripts that occasionally give trouble. I could look for a student to do the entire code. Having a student adding proper logging may not be a good idea as this may need too much oversight.
Reactions are currently unavailable