py21cmfast.CacheConfig¶
- class py21cmfast.CacheConfig¶
A configuration object that specifies whether a certain field should be cached.
- classmethod last_step_only()¶
Generate a CacheConfig where only boxes needed from more than one step away are cached.
This represents the minimum caching setup which will never store every redshift in memory. PerturbedField and PerturbedHaloCatalogs are all calculated at the start of the run, and HaloBox is required at multiple redshifts for the XraySourceBox. So this caching setup allows free purging of these objects without losing data.
- classmethod noloop()¶
Generate a CacheConfig where only boxes not requiring evolution are cached.
- classmethod off()¶
Generate a CacheConfig where no boxes are cached.
- classmethod on()¶
Generate a CacheConfig where all boxes are cached.
- Return type:
Self
- brightness_temp: bool¶
- halo_catalog: bool¶
- halobox: bool¶
- initial_conditions: bool¶
- ionized_box: bool¶
- perturbed_field: bool¶
- spin_temp: bool¶
- xray_source_box: bool¶