deepTools
deepTools copied to clipboard
added support for warnings stdlib
Welcome to deepTools GitHub repository! Please check the following regarding your pull request :
- [ ] Does the PR contain new feature?
- [X] Does the PR contain bugfix?
An error was raising while using
computeMatrixOperations filterValueson NumPy version 1.26.4. I think NumPy deleted the link to the warnings stdlib as of version 1.21.5 (See stackoverflow thread). Therefore, the script computeMatrixOperations.py fails on line 432, raising:
np.warnings.filterwarnings('ignore')
AttributeError: module 'numpy' has no attribute 'warnings'. Did you mean: 'hanning'?
Therefore, based on the same stackoverflow thread I modified all the files importing numpy to add support for warnings. The other option is to comment the line 432 as suggested in #1358 .
- [ ] Does the PR contain documentation changes?
- [ ] Does the PR contain changes to the galaxy wrapper?