In order to get controllers to work with Python 2.7 I had to wrap the replace operation with a unicode call in the neg_token function. I suspect this is a Python 2 only issue and has no effect when using Python 3.
if unicode(x.replace('.','0')).isnumeric() == True:
In order to get controllers to work with Python 2.7 I had to wrap the
replace
operation with aunicode
call in theneg_token
function. I suspect this is a Python 2 only issue and has no effect when using Python 3.https://github.com/susantoj/PYPOWER-Dynamics/blob/bb90844434e35fa6be3387c85bf9ed7e30e9f4c6/pydyn/controller.py#L197