Skip to content

Commit

Permalink
moved isinstance to if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
aronnoordam committed Jan 21, 2025
1 parent 483fc51 commit 7c9e513
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def __init__(self, Model, settings ):
self.params.AddValue("func_type", settings["func_type"])
self.params.AddValue("function", settings["function"])
self.params.AddValue("dataset", settings["dataset"])
is_variable_vector_type = isinstance(self.GetVariableBasedOnString(), KratosMultiphysics.VectorVariable)
if "input" in settings["func_type"].GetString() and is_variable_vector_type:
if ("input" in settings["func_type"].GetString() and
isinstance(self.GetVariableBasedOnString(), KratosMultiphysics.VectorVariable)):
self.params.AddValue("vector_variable_indices", settings["vector_variable_indices"])
if "json_file" in settings["func_type"].GetString():
self.params.AddValue("dataset_file_name", settings["dataset_file_name"])
Expand Down

0 comments on commit 7c9e513

Please sign in to comment.