Comments (4)
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:
- Download the source into the pycamb/ distribution folder and unzip it, and run the install.
- 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.
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.
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.
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)
- [Feature Req] Add smooth filter from Leo+2018
- [Feature Req] Direct calculation of growth factor for alternative dark energy models HOT 5
- [BUG] Remove ignoring D200
- [BUG] Remove Flake8 D400
- [BUG] Check E501
- [BUG] Typo in Watson SO parameters HOT 2
- [Question] Reference for Tinker+08 parameters HOT 2
- [BUG] Deployment Is Wonky
- [BUG] ModuleNotFoundError on Python 3.10.4 HOT 1
- HMF sampler does not take into account Mmax (upper limit on logmass) [BUG] HOT 2
- Calculating Cumulative Stellar Mass Density for a given redshift range. HOT 11
- [Feature Req] Including Planck 18 Cosmology HOT 7
- [BUG] Developer installation ends with an error HOT 1
- [Feature Req] Upcoming Features - Discussion HOT 5
- [Question] Getting HMF components HOT 1
- Calculation of the unnormalized sigma and dlns/dlnm parameters HOT 2
- [Question]How do I input my own power spectrum? HOT 2
- [BUG] Possible Typo in Mass Variance HOT 1
- [BUG] growth_factor is mixed up between g(a) and D(a) HOT 2
- [BUG] `growth_rate`, currently implemented following Hamilton (2001) eq. 4, is very far from the `CAMB` growth rate HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hmf.