Skip to content

[BUG] Non-monotonic reionization when node redshifts are irregular #516

@samgagnon

Description

@samgagnon

Describe the bug:

To Reproduce:
Steps to reproduce the behavior:

  1. Run a lightcone with node_redshifts defined as follows
    node_redshifts = p21c.get_logspaced_redshifts(min_redshift = min_redshift, max_redshift = max_redshift, z_step_factor = 1.02)
    node_redshifts = np.concatenate((node_redshifts, np.array([4.9, 5.7, 6.0, 6.6, 7.0, 7.3])))
    and the toml template provided in the attached file sgh25.txt (change file extension to .toml)
  2. Read the average neutral fraction as a function of node redshift using lc.global_quantities['neutral_fraction'][::-1]
  3. The neutral fraction does not increase monotonically with redshift. It exhibits discontinuities coinciding with the redshifts appended to the node redshift array.

Expected behavior:
Neutral fraction should increase monotonically with redshift.

Details:

  • 21cmFAST main branch synced to commit f6bf7ed

sgh25.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions