-
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 | ||
examples | ||
packaging | ||
pykat | ||
test | ||
work_in_progress | ||
.gitignore | ||
.gitlab-ci.yml | ||
CHANGES.txt | ||
LICENSE.txt | ||
MANIFEST.in | ||
README.md | ||
environment.yml | ||
requirements.txt | ||
setup.py |