Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] "velocity_z" pointer field error in tutorial lightcones.ipynb #448

Open
raxquax123 opened this issue Dec 9, 2024 · 0 comments
Open
Labels

Comments

@raxquax123
Copy link

Describe the bug:
Attempting to run the lightcones.ipynb code provided in the tutorial Jupyter notebooks (or in the documentation https://21cmfast.readthedocs.io/en/latest/tutorials/lightcones.html) using the Python-wrapped code in the Github master branch returns the following error when calling the run_lightcone function:

Key velocity_z in PerturbedField(UserParams(BOX_LEN:512, DIM:384, FAST_FCOLL_TABLES:False, HII_DIM:128, HMF:1, KEEP_3D_VELOCITIES:True, MINIMIZE_MEMORY:False, NON_CUBIC_FACTOR:1, NO_RNG:False, N_THREADS:1, PERTURB_ON_HIGH_RES:False, POWER_SPECTRUM:0, USE_2LPT:True, USE_FFTW_WISDOM:False, USE_INTERPOLATION_TABLES:True, USE_RELATIVE_VELOCITIES:False);
CosmoParams(OMb:0.04897, OMm:0.3096, POWER_INDEX:0.9665, SIGMA_8:0.8102, hlittle:0.6766);
random_seed:315828138004;
redshift:12.124841861245521) not a defined pointer field in C.

To Reproduce:
Run the Jupyter notebook found at docs/tutorials/lightcones.ipynb using the current Python-wrapped 21cmFAST version from the Github master branch.

Details:

  • Python version: 3.11.10
  • OS: macOS 14.6.1
  • Package: I’m using the Python-wrapped code from the master branch of the Github (as the version installed through conda does not include the new lightcone.py file, whose functions are called in the Jupyter notebook / readthedocs page).

Additional context
If I swap out the wrapper.py and outputs.py files for the conda-installed ones, then copy across these new lightcone functions introduced by the Github version into the two conda-based files, run_lightcone will run (although there are key errors later on when introducing RSDs).
I doubled the number of cells in each dimension compared to the default, but the resolution is the same. Using the default HII_DIM and BOX_LEN produces the same error.
I’m not sure if it’s an issue on my part with e.g. dependencies, or whether there is a bug!

@raxquax123 raxquax123 added the bug label Dec 9, 2024
@raxquax123 raxquax123 changed the title "velocity_z" pointer field error in tutorial lightcones.ipynb [BUG] "velocity_z" pointer field error in tutorial lightcones.ipynb Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant