(func)
| 94 | |
| 95 | |
| 96 | def get_num_args(func): |
| 97 | if isinstance(func, Harminv) or isinstance(func, PadeDFT): |
| 98 | return 2 |
| 99 | elif inspect.ismethod(func): |
| 100 | return func.__code__.co_argcount - 1 # remove 'self' from count |
| 101 | else: |
| 102 | return func.__code__.co_argcount |
| 103 | |
| 104 | |
| 105 | def vec(*args): |
no outgoing calls
no test coverage detected