GithubHelp home page GithubHelp logo

How can I get CAMB about hmf HOT 4 CLOSED

halomod avatar halomod commented on September 17, 2024
How can I get CAMB

from hmf.

Comments (4)

steven-murray avatar steven-murray commented on September 17, 2024

Hi there,

I refer you to the camb website: http://camb.info. From there you will find the downloads (you will be required to tick a box or two and check your email for the relevant final url). Once you have the download url for the specific version of CAMB you like, you can do one of two things:

  1. Download the source into the pycamb/ distribution folder and unzip it, and run the install.
  2. Run python setup.py install --get=<url> where the url is the one for the download (should end with a .tar.gz).

To install without root permission, you have a few options (look it up on google there should be heaps of info). My preferred method is to use the Anaconda python distribution, which installs locally to wherever you want it to. Another method is to use a flag in the python setup.py install command that installs the package locally.

Hope that helps!

from hmf.

neuronphysics avatar neuronphysics commented on September 17, 2024

Hi again,

Thanks for the tips. I did install pycamb with the command like you have suggested. I got some warning during installation process such as
build/src.linux-x86_64-2.7/src/_pycamb-f2pywrappers2.f90:200.10:

  use pycamb_mod, only : matter_power_sigma8
      1

Warning: Unused module variable 'matter_power_sigma8' which has been explicitly imported at (1)
build/src.linux-x86_64-2.7/src/_pycamb-f2pywrappers2.f90:200.10:

  use pycamb_mod, only : matter_power_sigma8
      1

Warning: Unused module variable 'transfers' which has been explicitly imported at (1)
build/src.linux-x86_64-2.7/src/_pycamb-f2pywrappers2.f90:200.10:

  use pycamb_mod, only : matter_power_sigma8
      1

Warning: Unused module variable 'transfers_k' which has been explicitly imported at (1)
build/src.linux-x86_64-2.7/src/_pycamb-f2pywrappers2.f90:200.10:

  use pycamb_mod, only : matter_power_sigma8
      1

Warning: Unused module variable 'transfers_sigma8' which has been explicitly imported at (1)

Then I have installed hmf without any error but when I try to run it with your given example I got this error

from hmf import MassFunction
hmf = MassFunction()
mass_variance = hmf.sigma
Segmentation fault (core dumped)
and it crashed. I don't know what might be a problem. I will appreciate if you could help.

Thanks.

from hmf.

steven-murray avatar steven-murray commented on September 17, 2024

That's interesting. The warnings are fine as far as I know. I've never gotten a segfault with pycamb on default settings before. I don't think I'll be able to help much unless I know your OS, compiler, python version and numpy version.

from hmf.

steven-murray avatar steven-murray commented on September 17, 2024

Hi, I hope you were able to get this working. Let us know if it's still a problem, or what the solution was, but otherwise I am going to close this.

from hmf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.