Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
ecomodeller committed Jan 22, 2025
1 parent a3c77dc commit 0f432d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mikeio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ def read(
raise ValueError("mikeio.read() is only supported for dfs files")

dfs = open(filename)
assert not isinstance(dfs, Mesh)
if isinstance(dfs, Mesh):
raise ValueError("mikeio.read() is not supported for Mesh files")

return dfs.read(items=items, time=time, keepdims=keepdims, **kwargs)

Expand Down

0 comments on commit 0f432d7

Please sign in to comment.