pycauset.set_export_max_bytes
Set a global materialization ceiling (in bytes) for exports to NumPy.
This controls when np.asarray(obj), np.array(obj), and pycauset.to_numpy are allowed to create a dense in-RAM NumPy array.
Notes:
- Passing
Nonedisables the size ceiling. - Even with
None, spill/file-backed objects may still require explicit opt-in viaallow_huge=True.
Parameters
- limit (int | None): Maximum allowed dense export size (bytes). Use
Noneto disable.
Examples
import pycauset as pc
# Allow up to 512MB NumPy exports
pc.set_export_max_bytes(512 * 1024 * 1024)
# Disable the ceiling (file-backed safety rules still apply)
pc.set_export_max_bytes(None)