holoviz / datashader

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

Make datashader.composite imports lazy #1222

Closed ianthomas23 closed 1 year ago

ianthomas23 commented 1 year ago

This PR moves the import of various datashader.composite functions into the functions that use them rather than at the top of the transfer_functions module. It makes the initial import of datashader much faster.

Thanks to @Hoxbro for identifying this downstream.

codecov[bot] commented 1 year ago

Codecov Report

Merging #1222 (9a4b61d) into main (25fbc3c) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1222   +/-   ##
=======================================
  Coverage   83.61%   83.62%           
=======================================
  Files          35       35           
  Lines        8734     8738    +4     
=======================================
+ Hits         7303     7307    +4     
  Misses       1431     1431           
Impacted Files Coverage Δ
datashader/transfer_functions/__init__.py 87.13% <100.00%> (+0.09%) :arrow_up:

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