Integrate pyc2ray as an optional IonizedBox compute function #426
Labels
context: python wrapper
Changes predominantly concerning the python wrapper
type: feature: physical
New feature that adds new analysis/physical model
With the new halo sampler, we should be able to create a flag which substitutes the excursion set reionisation algorithms for model comparison tests. Michele Bianco has already done a lot of work in getting the halo-related outputs from 21cmFAST to work with
pyc2ray
, and we would like to implement this fully within thepy21cmfast
package. The main steps would be as follows:compute()
method ofIonizedBox
to optionally bypass the regular compute method, calling another function in the wrapper.HaloField
orHaloBox
, convert it to the units expected bypyc2ray
, pass the required fields to the GPU if needed, and call the ASORA RT algorithm. It would then populate theIonizedBox
fields with those given bypyc2ray
.Calculating from the
HaloBox
would be much easier as we just need to pass in then_ion
anddensity
fields, but to get a little more resolution on our sources (effectively a grid ofDIM
rather thanHII_DIM
) we could pass in the catalogs inHaloField
after converting to ionising emissivity using the functions inHaloBox.c
.The text was updated successfully, but these errors were encountered: