Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.97 KB

README.md

File metadata and controls

47 lines (36 loc) · 1.97 KB

DESC Legacy Blinding for Cosmosis codecov arXiv LSST DESC Blinding Slack

Legacy Cosmosis Blinding for 2pt data

This repository contains an implementation of Muir et al. 2020 data-vector blinding strategy using Cosmosis V2. The package in this repository is a direct adaptation of Jessie Muir's DES Y3 blinding scripts to the DESC context.

Supports 3x2pt data-vector blinding.

For the DESC Blinding Library, see here.

Installation

  • Install cosmosis via conda install -c conda-forge cosmosis
  • Activate the cosmosis configuration via source cosmosis-configure
  • Install the cosmosis standard library via conda install -c conda-forge cosmosis-build-standard-library
  • Install the standard library in the correct cosmosis folder cosmosis-build-standard-library -i

Legacy Blinding installation

Simply install with

python -m pip install -e .

Test the installation

To run the unit tests:

cd tests
pytest .

Usage

Don't forget to source cosmosis-configure

To get the docstring on the command-line interface:

python -m blind_2pt_cosmosis --help

To run an example:

python -m blind_2pt_cosmosis -u src/blind_2pt_cosmosis/cosmosis_files/sim_fiducial.fits [--log-level DEBUG]

[!] Note: You can also include all the command line arguments in a .config file and call python -m blind_2pt_cosmosis @example.config instead. This will be adapted to use yaml files in the near future.