Skip to content

Commit

Permalink
when modifying the sequence you are iterating over, make a temporary …
Browse files Browse the repository at this point in the history
  • Loading branch information
thorade committed May 5, 2017
1 parent 07a2e36 commit cacd51a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildingspy/development/regressiontest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2218,7 +2218,7 @@ def run(self):
# Remove all data that do not require a simulation or an FMU export.
# Otherwise, some processes may have no simulation to run and then
# the json output file would have an invalid syntax
for ele in self._data:
for ele in self._data[:]:
if not (ele['mustSimulate'] or ele['mustExportFMU']):
self._data.remove(ele)

Expand Down

0 comments on commit cacd51a

Please sign in to comment.