Skip to content

Commit

Permalink
Merge pull request #588 from ketch/no_inspect
Browse files Browse the repository at this point in the history
Remove old check for wrong mapc2p signature.
  • Loading branch information
ketch committed May 20, 2018
2 parents 43738ee + 6743931 commit 0ad7b65
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/pyclaw/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,6 @@ def mapc2p(self):
return self._mapc2p
@mapc2p.setter
def mapc2p(self,mapc2p):
import inspect
first_arg_name = inspect.getargspec(mapc2p)[0][0]
if first_arg_name.lower() == 'grid':
warnings.warn("""The required signature for the mapc2p function has recently changed:
It is `mapc2p(x,y,z)` rather than `mapc2p(grid,X)`.""")
self._mapc2p = mapc2p
self._clear_cached_values()

Expand Down

0 comments on commit 0ad7b65

Please sign in to comment.