LSSTDESC / N5K

Non-local No-Nonsense Non-Limber Numerical Knockout
BSD 3-Clause "New" or "Revised" License
7 stars 7 forks source link

CCL version? #18

Closed dkirkby closed 3 years ago

dkirkby commented 3 years ago

Using the main branch of N5K and the latest CCL from conda-forge, example_benchmark.py fails with:

Traceback (most recent call last):
  File "example_benchmark.py", line 18, in <module>
    cal_lm.setup()
  File "/Users/david/Cosmo/DESC/N5K/N5K/n5k/calculator_ccl.py", line 14, in setup
    self.cosmo = ccl.CosmologyCalculator(Omega_c=par['Omega_m']-par['Omega_b'],
AttributeError: module 'pyccl' has no attribute 'CosmologyCalculator'

I guess I need to install CCL from source to pickup the new CCL calculator mode? I don't see instructions for that here but should python setup.py install work?

c-d-leonard commented 3 years ago

Hi @dkirkby ah yes, right - you will need to get the latest version of master from the github. If you then do pip install -e . in the home directory, that should work to install. Let me know if you have any more issues with this.

dkirkby commented 3 years ago

Thanks @c-d-leonard, that works (after installing CMake).