@@ -1242,7 +1242,7 @@ def _search_indices_curvilinear(self, x, y, z, ti=-1, time=-1, particle=None, se
12421242 (xi , yi ) = self ._reconnect_bnd_indices (xi , yi , grid .xdim , grid .ydim , grid .mesh )
12431243 it += 1
12441244 if it > maxIterSearch :
1245- print ("Correct cell not found after %d iterations" % maxIterSearch )
1245+ print (f "Correct cell not found after { maxIterSearch } iterations" )
12461246 raise FieldOutOfBoundError (x , y , 0 , field = self )
12471247 xsi = max (0.0 , xsi )
12481248 eta = max (0.0 , eta )
@@ -2532,13 +2532,13 @@ def __init__(self, name: str, F, V=None, W=None):
25322532 assert isinstance (Fi , Field ) and isinstance (
25332533 Vi , Field
25342534 ), "F, and V components of a NestedField must be Field"
2535- self .append (VectorField (name + "_%d" % i , Fi , Vi ))
2535+ self .append (VectorField (f" { name } _ { i } " , Fi , Vi ))
25362536 else :
25372537 for i , Fi , Vi , Wi in zip (range (len (F )), F , V , W , strict = True ):
25382538 assert (
25392539 isinstance (Fi , Field ) and isinstance (Vi , Field ) and isinstance (Wi , Field )
25402540 ), "F, V and W components of a NestedField must be Field"
2541- self .append (VectorField (name + "_%d" % i , Fi , Vi , Wi ))
2541+ self .append (VectorField (f" { name } _ { i } " , Fi , Vi , Wi ))
25422542 self .name = name
25432543
25442544 def __getitem__ (self , key ):
0 commit comments