• Sean Leavey's avatar
    Fix issue with modulator when using const as order · a49aa116
    Sean Leavey authored
    When a constant is used in place of the modulator order, its value gets converted to a float
    and then a string, which the modulator in Pykat tries to convert to int. Converting a string
    '1.0' to int throws an error. This change parses the string as a float, then checks if it is
    an integer, throws an error if not, then converts it to an int. It's hacky but it works.
    
    **It's likely other code suffers from this bug if it copied the same parse code**
    a49aa116
Name
Last commit
Last update
bin Loading commit data...
examples Loading commit data...
packaging Loading commit data...
pykat Loading commit data...
test Loading commit data...
work_in_progress Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
CHANGES.txt Loading commit data...
LICENSE.txt Loading commit data...
MANIFEST.in Loading commit data...
README.md Loading commit data...
environment.yml Loading commit data...
requirements.txt Loading commit data...
setup.py Loading commit data...