maclandrol / FisherExact

Fisher exact test for mxn contingency table in python
MIT License
37 stars 12 forks source link

Fixed _fisher_sim function deprecated numpy type #14

Closed LouisLalonde closed 9 months ago

LouisLalonde commented 9 months ago

The np.float type was a reference to the python float type in previous numpy versions and is now deprecated.

It was used in the _fisher_sim function fact variable computation and caused the program to fail when the simulate_pval parameter was set to True.

This pull request fix the issue by simply changing the type to float32