Skip to content

Commit

Permalink
Update to fix issue related to Iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
shellshocked2003 committed Sep 23, 2022
1 parent 283f40a commit bc6fda0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UQpy/run_model/model_execution/ThirdPartyModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down

0 comments on commit bc6fda0

Please sign in to comment.