pangeo-data / rechunker

Disk-to-disk chunk transformation for chunked arrays.
https://rechunker.readthedocs.io/
MIT License
162 stars 25 forks source link

Supress `_copy_chunk(...)` prints during execution? #105

Closed jbusecke closed 2 years ago

jbusecke commented 2 years ago

Whenever I execute a rechunking plan in the recent rechunker versions, I get a ton of messages like this displayed:

_copy_chunk((slice(0, 100, None), slice(0, 25, None), slice(0, 53, None)))

Is it possible to suppress those? Or am I missing something here?

aulemahal commented 2 years ago

As a user, I would suggest moving the print call to a logging.debug, enabling finer control on whether it is printed out or not.

TomAugspurger commented 2 years ago

Agreed with changing those print to log messages.

rabernat commented 2 years ago

This is definitely a mistake left in the code by me. Sorry about that folks.