diff --git a/src/UQpy/run_model/model_execution/ThirdPartyModel.py b/src/UQpy/run_model/model_execution/ThirdPartyModel.py index 548ed5a8..0d09334f 100644 --- a/src/UQpy/run_model/model_execution/ThirdPartyModel.py +++ b/src/UQpy/run_model/model_execution/ThirdPartyModel.py @@ -310,7 +310,7 @@ def _find_and_replace_var_names_with_values(self, sample): print("\nUQpy: Index Error: {0}\n".format(err)) raise IndexError("{0}".format(err)) - if isinstance(temp, collections.Iterable): + if isinstance(temp, collections.abc.Iterable): # If it is iterable, flatten and write as text file with designated separator temp = np.array(temp).flatten() to_add = ""