Improve Python < 3.6 compatibility.

f-strings are removed as it is only available since Python >=3.6
This commit is contained in:
Sylvain Tricot 2019-11-29 14:04:41 +01:00
parent 54b7e409a0
commit dcda10d1b5
1 changed files with 4 additions and 4 deletions

View File

@ -1516,13 +1516,13 @@ class CalculationParameters(BaseParameters):
self.spec_parameters.calc_iren = 1
elif p.value.lower() == 'G_n'.lower():
self.spec_parameters.calc_iren = 2
LOGGER.info(f"Renormalization activated with \'{p.value}\' method")
LOGGER.info("Renormalization activated with \'{}\' method".format(p.value))
def bind_renormalization_omega(self, p):
omega = complex(p.value)
self.spec_parameters.calc_renr = omega.real
self.spec_parameters.calc_reni = omega.imag
LOGGER.info(f"Renormalization omega set to \'{p.value}\'")
LOGGER.info("Renormalization omega set to \'{}\'".format(p.value))
def bind_RA_cutoff_damping(self, p):
self.spec_parameters.calc_ino = p.value
@ -1555,9 +1555,9 @@ class CalculationParameters(BaseParameters):
LOGGER.info('Radial integrals taken into account: %s', p.value)
if self.global_parameters.spinpol is False:
LOGGER.warning(
f"'{p.name}' is ignored since the 'spinpol' global parameter is set "
"'{}' is ignored since the 'spinpol' global parameter is set "
"to False. Enable spin polarization in the constructor of "
"your Calculator if you want to use this option.")
"your Calculator if you want to use this option.".format(p.name))
def bind_path_filtering(self, p):
ifwd = ipw = ilength = 0