You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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
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:
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:
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!
The text was updated successfully, but these errors were encountered: