Skip to main content

LEPHARE photometric redshift estimator

Project description

lephare

Template

PyPI GitHub Workflow Status Codecov Read The Docs

IMPORTANT! This project is in an early development stage. If you wish to use and run LePHARE please download it from the official repository.

LePHARE (PHotometric Analysis for Redshift Estimation) is a Python package built on a complete rewrite in C++ of the Fortran code LePhare. LePHARE computes photometric redshifts and physical parameters by fitting spectral energy distributions (SED) to a dataset of photometric fluxes or apparent magnitudes.

Installation

The simplest way to install lephare is using pip:

pip install lephare

If you prefer to use binary executables from the command line you may wish to conduct a legacy installation.

Example usage

We provide a number of Jupyter notebooks demonstrating various aspects of the Python code.

Dev Guide - Getting Started

Before installing any dependencies or writing code, it's a great idea to create a virtual environment. LINCC-Frameworks engineers primarily use conda to manage virtual environments. If you have conda installed locally, you can run the following to create and activate a new environment.

>> conda create -n <env_name> python=3.10
>> conda activate <env_name>

Once you have created a new environment, you can install this project for local development using the following commands:

>> git submodule update --init --recursive
>> pip install -e .'[dev]'
>> pre-commit install
>> conda install pandoc

Notes:

  1. The single quotes around '[dev]' may not be required for your operating system.
  2. pre-commit install will initialize pre-commit for this local repository, so that a set of tests will be run prior to completing a local commit. For more information, see the Python Project Template documentation on pre-commit
  3. Install pandoc allows you to verify that automatic rendering of Jupyter notebooks into documentation for ReadTheDocs works as expected. For more information, see the Python Project Template documentation on Sphinx and Python Notebooks

Citation

If using this code in scientific research please cite the following papers:

This project was automatically generated using the LINCC-Frameworks python-project-template. For more information about the project template see the documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lephare-0.1.6.tar.gz (1.0 MB view hashes)

Uploaded Source

Built Distributions

lephare-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.3 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

lephare-0.1.6-cp312-cp312-macosx_11_0_arm64.whl (946.3 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

lephare-0.1.6-cp312-cp312-macosx_10_15_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.12 macOS 10.15+ x86-64

lephare-0.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.3 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

lephare-0.1.6-cp311-cp311-macosx_11_0_arm64.whl (943.0 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

lephare-0.1.6-cp311-cp311-macosx_10_15_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.11 macOS 10.15+ x86-64

lephare-0.1.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

lephare-0.1.6-cp310-cp310-macosx_11_0_arm64.whl (941.7 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

lephare-0.1.6-cp310-cp310-macosx_10_15_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.10 macOS 10.15+ x86-64

lephare-0.1.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

lephare-0.1.6-cp39-cp39-macosx_11_0_arm64.whl (941.9 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

lephare-0.1.6-cp39-cp39-macosx_10_15_x86_64.whl (1.7 MB view hashes)

Uploaded CPython 3.9 macOS 10.15+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page