changed string using format in _add_eigenvalue to f-string

This commit is contained in:
Daniel Otto de Mentock 2022-05-02 16:40:51 +02:00
parent a0f019a0cf
commit 57177303b3
1 changed files with 1 additions and 1 deletions

View File

@ -790,7 +790,7 @@ class Result:
elif eigenvalue == 'min':
label,p = 'minimum',0
else:
raise TypeError("invalid eigenvalue passed to function: {}".format(eigenvalue))
raise TypeError(f'invalid eigenvalue passed to function: {eigenvalue}')
return {
'data': tensor.eigenvalues(T_sym['data'])[:,p],