pyinterval
pyinterval copied to clipboard
Invalid interval component due to precision?
Hi,
Could you tell why the following error is being thrown? Are the operators used not able to handle this much precision?
Error1:
Traceback (most recent call last):
File "c.py", line 78, in
Similarly, File "/path/python2.7/site-packages/interval/init.py", line 100, in process raise cls.ComponentError("Invalid interval component: " + repr(x)) interval.ComponentError: Invalid interval component: interval([0.004029219530949634, 0.004029219530949636])
I cannot reproduce it. Both intervals seem to be perfectly fine:
>>> from interval import interval
>>> interval([0.020530565167243362, 0.020530565167243373])
>>> interval([0.004029219530949634, 0.004029219530949636])
I need more context to be able to diagnose what is wrong.