Skip to content

Commit

Permalink
fix model export not working when model contains ModelData-type item
Browse files Browse the repository at this point in the history
  • Loading branch information
pesekon2 committed Oct 21, 2023
1 parent 36536c9 commit f332fb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/wxpython/gmodeler/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2698,7 +2698,7 @@ def _writeActinia(self):

parameterized = False
module_list_str = ""
for item in self.model.GetItems():
for item in self.model.GetItems(ModelAction):
parameterizedParams = item.GetParameterizedParams()
if len(parameterizedParams["params"]) > 0:
parameterized = True
Expand Down Expand Up @@ -2857,7 +2857,7 @@ def __init__(self):
"""
)

for item in self.model.GetItems():
for item in self.model.GetItems(ModelAction):
self._write_input_outputs(item, self.model.GetIntermediateData()[:3])

self.fd.write(
Expand Down

0 comments on commit f332fb0

Please sign in to comment.