Closed JasperSolt closed 2 months ago
Thanks for working through this @JasperSolt. @daviesje I think this is something that should work, so we should check it out.
This appears to be a bug with passing UserParams as a dict. _configure_inputs
is called in the setup before the parameter inputs are cast into the structs https://github.com/21cmfast/21cmFAST/blob/ef480dc7328e4dea7b46203601027fb0ff9067ca/src/py21cmfast/wrapper.py#L296-L320. @steven-murray correct me if I'm wrong but I think this bug exists in master
as well. I can't see a reason why we can't move those casts up above the _configure_inputs
, which should fix the issue.
Hi again, in troubleshooting my last issue I ran into a new one.
I'm attempting to run the following code on the
v4-prep
branch:When I run this code I get the following error:
I'm using the same user_params for each step so I'm not sure what could be causing this.
Thanks!
Edit 1: In looking over my code I was passing in a AstroParams object into cosmo_params, which would obviously cause an issue (my bad). But not sure why the error would tell me user_params is the problem
Edit 2: Fixing the error I mentioned in Edit 1 did not resolve the issue. So this remains a bug(?)
Edit 3: removed the user_params argument from determine_halo_list and that fixed it. Seems like it doesn't like being passed both an init_box and user_params. Noted!