Skip to content

Commit

Permalink
Update python/simulation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj authored Sep 3, 2024
1 parent 84585e4 commit 8f68405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def get_num_args(func):
return (
2
if isinstance(func, Harminv) or isinstance(func, PadeDFT)
else func.__code__.co_argcount - 1
else func.__code__.co_argcount - 1 # first argument is "self", passed implicitly for bound methods
if inspect.ismethod(func)
else func.__code__.co_argcount
)
Expand Down

0 comments on commit 8f68405

Please sign in to comment.