NCAR / ASAPPyTools

The ASAP Python Toolbox is a collection of stand-alone tools for doing simple tasks, from managing print messages with a set verbosity level, to keeping timing information, to managing simple MPI communication.
https://asappytools.readthedocs.io/en/latest
Apache License 2.0
9 stars 3 forks source link

FIX: Specifying verbosity now has the expected outcome #1

Closed dchandan closed 9 years ago

dchandan commented 9 years ago

The problem was this: calling a vprinter class object to print something with a specified verbosity would not print that - if the class was instantiated with that exact same verbosity. For example, calling vprinter object with verbosity 2 would not have printed the message if self.verbosity was itself 2, which i think is counterintuitive. If the class has been constructed with default verbosity 2, it should print everything with verbosity less than or equal to 2.