Skip to content

Commit

Permalink
Update src/mrinufft/operators/base.py
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre-Antoine Comby <[email protected]>
  • Loading branch information
mcencini and paquiteau authored Sep 17, 2024
1 parent d2a7083 commit 1422c9f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/mrinufft/operators/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,7 @@ def wrapper(*args, **kwargs):

def _ismethod(fun): # ismethod works on instance methods, not classes (always False)
first_arg = list(inspect.signature(fun).parameters)[0]
if first_arg in ["self", "cls"]:
return True
else:
return False
return first_arg in ["self", "cls"]:


def _get_array_module(input): # handle native Python case
Expand Down

0 comments on commit 1422c9f

Please sign in to comment.