Skip to content

Commit 997469d

Browse files
authored
use fstrings in the driver (#323)
1 parent 8be4b60 commit 997469d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyro/pyro_sim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def initialize_problem(self, problem_name, *, inputs_file=None, inputs_dict=None
128128
self.problem_source = None
129129

130130
else:
131-
problem = importlib.import_module("pyro.{}.problems.{}".format(self.solver_name, problem_name))
131+
problem = importlib.import_module(f"pyro.{self.solver_name}.problems.{problem_name}")
132132
self.problem_name = problem_name
133133
self.problem_func = problem.init_data
134134
self.problem_params = problem.PROBLEM_PARAMS

0 commit comments

Comments
 (0)