changed string using format in _add_eigenvalue to f-string
This commit is contained in:
parent
a0f019a0cf
commit
57177303b3
|
@ -790,7 +790,7 @@ class Result:
|
||||||
elif eigenvalue == 'min':
|
elif eigenvalue == 'min':
|
||||||
label,p = 'minimum',0
|
label,p = 'minimum',0
|
||||||
else:
|
else:
|
||||||
raise TypeError("invalid eigenvalue passed to function: {}".format(eigenvalue))
|
raise TypeError(f'invalid eigenvalue passed to function: {eigenvalue}')
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'data': tensor.eigenvalues(T_sym['data'])[:,p],
|
'data': tensor.eigenvalues(T_sym['data'])[:,p],
|
||||||
|
|
Loading…
Reference in New Issue