Skip to content

Commit

Permalink
Merge pull request #750 from DHI/pfs_many_commas
Browse files Browse the repository at this point in the history
Pfs - handle slow reading of MIKE Hydro
  • Loading branch information
ecomodeller authored Nov 19, 2024
2 parents 2492677 + 1d9b840 commit e8c87b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mikeio/pfs/_pfsdocument.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ def _parse_line(self, line: str, level: int = 0) -> tuple[str, int]:
def _parse_param(self, value: str) -> str:
if len(value) == 0:
return "[]"

if "MULTIPOLYGON" in value:
return value
if "," in value:
tokens = self._split_line_by_comma(value)
for j in range(len(tokens)):
Expand Down

0 comments on commit e8c87b8

Please sign in to comment.