21cmfast / 21cmFAST

Official repository for 21cmFAST: a code for generating fast simulations of the cosmological 21cm signal
MIT License
56 stars 37 forks source link

Make writing of PerturbHaloField optional #390

Open daviesje opened 2 months ago

daviesje commented 2 months ago

Since the HaloField can get quite large, there can be a significant amount of IO which slows down the simulation when caching. However we don't always need to save both HaloField and PerturbHaloField. So this change would have two steps:

Since calls to perturb_halo_field are quite quick (possibly faster than the IO), I would imagine that the default should be to not cache it.