blosc2.set_compressor¶
- blosc2.set_compressor(codec: Codec) int[source]¶
- Set the compressor to be used. If this function is not called, then - blosc2.Codec.BLOSCLZwill be used by default.- Parameters:
- Returns:
- out – The code for the compressor (>=0). 
- Return type:
- int 
- Raises:
- ValueError – If the compressor is not recognized or is not supported. 
 - Notes - The compname parameter in python-blosc API has been replaced by - codec, using compname as parameter or a string as a- codecvalue will not work.- See also