From 0babfee3ca8e338c1b22c85c24c0fe60ba96f016 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Tue, 3 Sep 2024 12:16:21 -0400 Subject: [PATCH] Update python/simulation.py --- python/simulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/simulation.py b/python/simulation.py index cee62fd02..aa0ee373f 100644 --- a/python/simulation.py +++ b/python/simulation.py @@ -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 # first argument is "self", passed implicitly for bound methods + else func.__code__.co_argcount - 1 # first argument is "self" if inspect.ismethod(func) else func.__code__.co_argcount )