Skip to content

Commit

Permalink
Dont' write empty <media/>-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke authored Aug 6, 2024
1 parent e1858f2 commit 66410a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ogs6py/ogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def _get_root(self, remove_blank_text=False, remove_comments=False):
def _remove_empty_elements(self):
root = self._get_root()
empty_text_list = ["./geometry", "./python_script"]
empty_el_list = ["./time_loop/global_process_coupling", "./curves"]
empty_el_list = ["./time_loop/global_process_coupling", "./curves", "./media"]
for element in empty_text_list:
entry = root.find(element)
if entry is not None:
Expand Down

0 comments on commit 66410a2

Please sign in to comment.