Open JasperSolt opened 1 month ago
When I run the following code in the v4-prep branch:
v4-prep
lc = p21c.outputs.LightCone.read(fname, lc_path) print(lc.lightcone_redshifts)
I get an error. This is because internally, when calling z_at_value, it is written like this:
z_at_value(self.cosmo_params.cosmo.comoving_distance, d)
An easy fix is to rewrite it as this:
f = lambda x: self.cosmo_params.cosmo.comoving_distance(x).value z_at_value(f, d)
Just wanted to bring this to your attention.
I think this was just fixed in #392 -- can you try it?
I've tried it and now I have an entirely different issue where I can't open my lightcones at all, I'll open a new issue for clarity
When I run the following code in the
v4-prep
branch:I get an error. This is because internally, when calling z_at_value, it is written like this:
An easy fix is to rewrite it as this:
Just wanted to bring this to your attention.