Motivation or Problem
In reference to pull request #1765.
By updating logging.debug from pre-formatting to providing arguments directly, there was a demonstrable improvement in computing time after changing statements like
logging.debug('Finished setting conditions for network {0}.'.format(self.label)) to
logging.debug('Finished setting conditions for network %s.', self.label) and
logging.warning(' Actual Keq({0:g} K) = {1:g}'.format(temperature, Keq_actual)) to
logging.log(level, ' Actual Keq(%g K) = %g', temperature, Keq_actual).
Desired Solution
To complete change of previous logging format to the sprintf style.
Motivation or Problem
In reference to pull request #1765.
By updating logging.debug from pre-formatting to providing arguments directly, there was a demonstrable improvement in computing time after changing statements like
logging.debug('Finished setting conditions for network {0}.'.format(self.label))tologging.debug('Finished setting conditions for network %s.', self.label)andlogging.warning(' Actual Keq({0:g} K) = {1:g}'.format(temperature, Keq_actual))tologging.log(level, ' Actual Keq(%g K) = %g', temperature, Keq_actual).Desired Solution
To complete change of previous logging format to the sprintf style.