Skip to content

Commit

Permalink
orhans changes to valueerror string
Browse files Browse the repository at this point in the history
  • Loading branch information
philipc2 committed Sep 15, 2023
1 parent b3c0237 commit bc74e8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions uxarray/grid/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ def __init__(self,
# check if inputted dataset is a minimum representable 2D UGRID unstructured grid
if not _validate_minimum_ugrid(grid_ds):
raise ValueError(
"Directly constructing a Grid requires the input dataset to follow the UGRID conventions as "
"described in our documentation."
"Use of Grid constructor requires grid_ds to follow the internal unstructured grid definition, "
"including variable and dimension names. This grid_ds does not satisfy those requirements. If you are "
"not sure about how to do that, using ux.open_grid() or ux.from_dataset() is suggested."
) # TODO: elaborate once we have a formal definition

# grid spec not provided, check if grid_ds is a minimum representable UGRID dataset
Expand Down

0 comments on commit bc74e8c

Please sign in to comment.