Code Monkey home page Code Monkey logo

kids450_cf_likelihood_public's Introduction

This repository contains the likelihood module for the KiDS-450 correlation function measurements from Hildebrandt et al. 2017 (MNRAS, 465, 1454). Note that this is NOT the original likelihood used for their analysis. However, this likelihood was used for the analysis of Köhlinger et al. 2019 (MNRAS, 484, 3126) and differences with respect to the original CosmoMC likelihood were found to be negligible (please refer to Section 4.1 in that reference for details). The module will be working 'out-of-the-box' within a MontePython and CLASS (version >= 2.6!) setup. The required KiDS-450 data files can be downloaded from the KiDS science data webpage and the parameter file for reproducing the fiducial run of Köhlinger et al. 2019 (MNRAS, 484, 3126) is supplied in the subfolder INPUT within this repository.

Assuming that MontePython (with CLASS version >= 2.6) is set up (we recommend to use the MultiNest sampler!), please proceed as follows:

  1. Clone this repository

git clone https://github.com/fkoehlin/kids450_cf_likelihood_public.git

  1. Copy __init__.py and kids450_cf_likelihood_public.data from this repository into a folder named kids450_cf_likelihood_public within /your/path/to/montepython_public/montepython/likelihoods/.

(you can rename the folder to whatever you like, but you must use this name then consistently for the whole likelihood which implies to rename the *.data-file, including the prefixes of the parameters defined in there, the name of the likelihood in the __init__.py-file and also in the *.param-file.)

  1. Set the path to the data folder (i.e. KiDS-450_COSMIC_SHEAR_DATA_RELEASE from the tarball available from the KiDS science data webpage) in kids450_cf_likelihood_public.data and modify parameters as you please (note that everything is set up to work with kids450_cf.param).

  2. Copy the folder CUT_VALUES from this repository also into the root data folder (KiDS-450_COSMIC_SHEAR_DATA_RELEASE).

  3. Start your runs using e.g. the kids450_cf.param supplied in the subfolder INPUT within this repository.

  4. Contribute your developments/bugfixes to this likelihood (please use a dedicated branch per fix/feature).

  5. If you publish your results based on using this likelihood, please consider citing Köhlinger et al. 2019 (MNRAS, 484, 3126) and please follow the instructions on the KiDS science data webpage for referencing all relevant sources for the KiDS-450 data. Please cite also all relevant references for MontePython and CLASS.

Refer to run_with_multinest.sh within the subfolder INPUT for all MultiNest-related settings that were used for the fiducial runs.

WARNING: This likelihood only produces valid results for \Omega_k = 0, i.e. flat cosmologies!

For questions/comments please use the issue-tracking system!

kids450_cf_likelihood_public's People

Contributors

fkoehlin avatar

Watchers

James Cloos avatar  avatar

Forkers

jdecruz

kids450_cf_likelihood_public's Issues

Trying to import the kids450_cf_likelihood_public likelihood failed

Dear Mr/Ms,

My name is Jaime and I am an UCL undergrad currently undertaking a summer project. I am having some issues trying to run the code.
I have carefully followed all the steps of the installation and I am currently trying to run the code within Montepython using:
'python montepython/MontePython.py run -o test -p input/kids450_cf.param'

However, I get the following error message:
'Trying to import the kids450_cf_likelihood_public likelihood as asked in
the parameter file, and failed. Please make sure it is in the
Montepython/likelihoods` folder, and is a proper python module. Check
also that the name of the class defined in the init.py matches the
name of the folder. In case this is not enough, here is the original
message: cannot import name solve_triangular'

I have made sure that I have the compatible python (2.6.6) and class (2.7.2) versions and he init.py file inside the likelihood and the .param file quote the right likelihood folder, the folder is in the correct directory, the content of the likelihood folder contains both a .py and a .data file and that the montepython and montepython likelihoods directories contain the necessary empty init.py to recognize likelihoods as python files. I have also tried running the code deleting the init.pyc files that are created during the runs in both directories.

Moreover, I have tried repeating the installation and switching the likelihood called in the .param file and the program runs fine so it seems to be a simple problem with the folder allocation of the kids likelihood but I cannot figure it out.

Do you know how could this issue be solved?

Thank you so much in advance.
All the best,
Jaime.

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.