holoviz / datashader

Quickly and accurately render even the largest data.
http://datashader.org
BSD 3-Clause "New" or "Revised" License
3.3k stars 365 forks source link

Do not use warnings from numpy #1176

Closed danigm closed 1 year ago

danigm commented 1 year ago

numpy has removed the warnings symbol from the init.py file so np.warnings is not valid in newer versions of numpy. This patch justs imports the warnings module and use it directly.

codecov[bot] commented 1 year ago

Codecov Report

Merging #1176 (141210c) into main (21a8614) will increase coverage by 0.01%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1176      +/-   ##
==========================================
+ Coverage   85.36%   85.38%   +0.01%     
==========================================
  Files          35       35              
  Lines        8010     8011       +1     
==========================================
+ Hits         6838     6840       +2     
+ Misses       1172     1171       -1     
Impacted Files Coverage Δ
datashader/core.py 88.25% <100.00%> (+0.20%) :arrow_up:
datashader/transfer_functions/__init__.py 86.89% <100.00%> (+0.02%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more