From 57177303b30d89f912696cf7a2621fe02969e650 Mon Sep 17 00:00:00 2001 From: Daniel Otto de Mentock Date: Mon, 2 May 2022 16:40:51 +0200 Subject: [PATCH] changed string using format in _add_eigenvalue to f-string --- python/damask/_result.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/damask/_result.py b/python/damask/_result.py index 8b7211f8c..66c8df882 100644 --- a/python/damask/_result.py +++ b/python/damask/_result.py @@ -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],