Skip to content

Commit

Permalink
error messages on NotImplementedErrors for curl/cross
Browse files Browse the repository at this point in the history
  • Loading branch information
JHopeCollins committed Aug 10, 2023
1 parent b65d8dc commit bff89bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/vertical_slice/vertical_slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def curl0(u):
elif d == 3:
return fd.curl(u)
else:
raise NotImplementedError
raise NotImplementedError("curl only implemented for 2 or 3 dimensions")


def curl1(u):
Expand All @@ -219,7 +219,7 @@ def curl1(u):
elif d == 3:
return fd.curl(u)
else:
raise NotImplementedError
raise NotImplementedError("curl only implemented for 2 or 3 dimensions")


def cross1(u, w):
Expand All @@ -240,7 +240,7 @@ def cross1(u, w):
elif d == 3:
return fd.cross(u, w)
else:
raise NotImplementedError
raise NotImplementedError("cross only implemented for 2 or 3 dimensions")


def cross0(u, w):
Expand All @@ -261,7 +261,7 @@ def cross0(u, w):
elif d == 3:
return fd.cross(u, w)
else:
raise NotImplementedError
raise NotImplementedError("cross only implemented for 2 or 3 dimensions")


def both(u):
Expand Down

0 comments on commit bff89bf

Please sign in to comment.