pyprobables: Math domain error
Hello,
I’m getting the following error when using print(bloom_filter).
File "/home/user/.conda/envs/biopython/lib/python3.9/site-packages/probables/blooms/bloom.py", line 127, in __str__
self.estimate_elements(),
File "/home/user/.conda/envs/biopython/lib/python3.9/site-packages/probables/blooms/bloom.py", line 350, in estimate_elements
log_n = math.log(1 - (float(setbits) / float(self.number_bits)))
ValueError: math domain error
I’m running the latest version, downloaded from pipit only the other day and I’m using python version 3.8.6.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 31 (16 by maintainers)
Hi @barrust sorry for the delay. I’ll certainly get that tested for you over the weekend.
As for how far I was off by, try not to smack your head on the desk when I tell you but I was off by over 14 million! I was using the max k-mer count instead of the actual number of elements by mistake.