deepTools icon indicating copy to clipboard operation
deepTools copied to clipboard

added support for warnings stdlib

Open AdriTara opened this issue 9 months ago • 0 comments

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 filterValues on 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?

AdriTara avatar Apr 14 '25 12:04 AdriTara