circstat / pycircstat

Toolbox for circular statistics with Python
MIT License
157 stars 42 forks source link

Use inspect library to get input argument names #81

Open mk-mccann opened 2 years ago

mk-mccann commented 2 years ago

For compatibility with python 3, I'm using inspect.getfullargspec to list the input arguments. I added an if-else to check for python version, in case people are still running Python 2. Tested on my local machine.

mk-mccann commented 2 years ago

I found the same thing in decorators.py/get_var. Same fix applied there.