-
Notifications
You must be signed in to change notification settings - Fork 20
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
FlowPM Blog Post Out of Date #96
Comments
so yes, the code from the blog post is out of date, but I think it should still work, no? We just need newer examples |
@bhorowitz if you want to see a recent demo, have a look at this notebook: https://colab.research.google.com/drive/1k6cTniiRZGF4F_RAA4XDuBCY16FxyUcZ?usp=sharing This is doing a lensing sim, but you'll get the picture. You want to encapsulate your function in something like this: @tf.function
def make_map(Omega_c=0.2589, sigma8=0.8159):
# Instantiates a cosmology with desired parameters
cosmology = flowpm.cosmology.Planck15(Omega_c=Omega_c, sigma8=sigma8)
.... |
The minimal example flowpm_demo.ipynb is outdated, but it should work if the 4th cell is replaced with
|
The flowpm_blog.ipynb file which is lined from the main README still uses tensorflow 1.x rather than 2.6. I'm not sure what the highest 2.x flowpm has been tested on so far...
The text was updated successfully, but these errors were encountered: