Science Score: 46.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
1 of 8 committers (12.5%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.7%) to scientific vocabulary
Last synced: 6 months ago
·
JSON representation
Repository
suite to deal with passband photometry
Basic Info
- Host: GitHub
- Owner: mfouesneau
- License: mit
- Language: Python
- Default Branch: master
- Homepage: https://mfouesneau.github.io/pyphot/
- Size: 45.7 MB
Statistics
- Stars: 61
- Watchers: 6
- Forks: 18
- Open Issues: 8
- Releases: 14
Created over 9 years ago
· Last pushed 8 months ago
Metadata Files
Readme
License
Citation
README.rst
pyphot -- A tool for computing photometry from spectra
======================================================
.. image:: https://img.shields.io/pypi/v/pyphot.svg
:target: https://pypi.org/project/pyphot/
.. image:: https://zenodo.org/badge/70060728.svg
:target: https://zenodo.org/badge/latestdoi/70060728
.. image:: https://static.pepy.tech/badge/pyphot
:target: https://pepy.tech/project/pyphot
.. image:: https://static.pepy.tech/badge/pyphot/month
:target: https://pepy.tech/project/pyphot
.. image:: https://img.shields.io/badge/python-3.9,_3.10,_3.11,_3.12,_3.13-blue.svg
This is a set of tools to compute synthetic photometry in a simple way, ideal to
integrate in larger projects.
full documentation at: http://mfouesneau.github.io/pyphot/
The inputs are photonic or energetic response functions for the desired
photometric bands and stellar spectra. The modules are flexible to handle units
in the wavelength definition through a simplified version of `pint` (link) and `astropy.units`
Filters are represented individually by a `Filter` object. Collections of
filters are handled with a `Library`. We provide an internal library that
contains a signitificant amount of common filters.
Each filter is minimally defined by a `wavelength` and `throughput`. Many
properties such as central of pivot wavelength are computed internally. When
units are provided for the wavelength, zero points in multiple units are also
accessible (AB, Vega magnitude, Jy, erg/s/cm2/AA). The default detector type is
assumed to be photonic, but energetic detectors are also handled for the
computations.
.. image:: https://mybinder.org/badge.svg
:target: https://mybinder.org/v2/gh/mfouesneau/pyphot/master?filepath=examples%2FQuickStart.ipynb
.. image:: https://img.shields.io/badge/render%20on-nbviewer-orange.svg
:target: https://nbviewer.jupyter.org/github/mfouesneau/pyphot/tree/master/examples/
.. note::
`cphot `_ is a spin-off project that provides a C++ version of pyphot
What's new?
-----------
* [July 2, 2025] Added Vega flavors to the Vega class, allowing users to select different Vega reference spectra for photometric calculations. (v1.7.0)
* [January 21, 2025] Moved installation to use `pyproject.toml`; Updated documentation; Updates for deprecated calls. (v1.6.0)
* [January 21, 2025] Support for Python 3.13 (v1.5.0);
* [June 26, 2024] Dropping support for Python <= 3.8 (due to HDF5 modules). Minor updates for Scipy 1.14.0 and Numpy 2.0
* [November 22, 2021] new filters, SVO interface, automated tests and documentation.
* [November 6, 2019] astropy version available in beta (`from pyphot import astropy as pyphot`)
* [April 29, 2019] sandbox contains fully unit aware passbands and lick indices libraries
* [April 15, 2019] merged UncertainFilter to main, sandbox contains passbands accounting for spectrum units
* [March 4, 2019] added flux calculations in photon/s/cm2
* [March 4, 2019] added many properties per filter (lphot, lmin, lmax)
* [June 12, 2018] adding Sun reference spectra (see `:class:Sun`)
* [Apr. 26, 2018] includes Gaia nominal, DR2 and revised DR2 passbands
Installation
------------
Before installation, make sure you have HDF5 version 1.8.4 or above (this is required for pytables, see details at: https://github.com/PyTables/PyTables). We will remove this dependency in a future release.
For OSX:
.. code::
brew install hdf5
For Debian-based distributions:
.. code::
sudo apt-get install libhdf5-serial-dev
* Installation from PyPI
.. code::
pip install pyphot
pip install git+https://github.com/mfouesneau/pyphot # if you want the unreleased version
* Manual installation
Download the repository and run the setup
.. code::
pip install .
Contributors
------------
Author:
Morgan Fouesneau
Direct contributions to the code base:
* Tim Morton (@timothydmorton)
* Ariane Lancon (@lancon)
Owner
- Name: Morgan Fouesneau
- Login: mfouesneau
- Kind: user
- Website: http://mfouesneau.github.io/
- Twitter: mfouesneau
- Repositories: 30
- Profile: https://github.com/mfouesneau
@mfouesneau@mastodon.online
GitHub Events
Total
- Create event: 7
- Release event: 2
- Issues event: 17
- Watch event: 4
- Delete event: 2
- Issue comment event: 18
- Push event: 53
- Pull request review event: 3
- Pull request event: 18
Last Year
- Create event: 7
- Release event: 2
- Issues event: 17
- Watch event: 4
- Delete event: 2
- Issue comment event: 18
- Push event: 53
- Pull request review event: 3
- Pull request event: 18
Committers
Last synced: almost 3 years ago
All Time
- Total Commits: 189
- Total Committers: 8
- Avg Commits per committer: 23.625
- Development Distribution Score (DDS): 0.45
Top Committers
| Name | Commits | |
|---|---|---|
| Morgan Fouesneau | m****u@a****u | 104 |
| Morgan Fouesneau | m****u@u****m | 70 |
| Timothy Morton | t****n@g****m | 5 |
| Jose Vines | j****s@u****l | 3 |
| Kamile Lukosiute | l****k@g****m | 3 |
| yqiu | 1****5@q****m | 2 |
| Ariane LANCON | l****n@A****l | 1 |
| lancon | a****n@a****r | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 58
- Total pull requests: 30
- Average time to close issues: 4 months
- Average time to close pull requests: about 1 month
- Total issue authors: 31
- Total pull request authors: 8
- Average comments per issue: 2.9
- Average comments per pull request: 0.3
- Merged pull requests: 26
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 14
- Pull requests: 15
- Average time to close issues: about 1 month
- Average time to close pull requests: about 5 hours
- Issue authors: 6
- Pull request authors: 2
- Average comments per issue: 0.71
- Average comments per pull request: 0.2
- Merged pull requests: 12
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- mfouesneau (19)
- sundarjhu (4)
- jvines (3)
- christophra (2)
- tjayasinghe (2)
- isteniomorais (2)
- stellaCL (2)
- augustfly (1)
- christopherlovell (1)
- RuiningZHAO (1)
- yurivict (1)
- karpov-sv (1)
- klukosiute (1)
- gserrano990 (1)
- aaelli99 (1)
Pull Request Authors
- mfouesneau (10)
- lancon (9)
- timothydmorton (4)
- jvines (3)
- stefanarseneau (2)
- yqiuu (1)
- tjayasinghe (1)
- klukosiute (1)
Top Labels
Issue Labels
enhancement (16)
bug (10)
question (10)
wontfix (2)
help wanted (1)
documentation (1)
Pull Request Labels
enhancement (2)
bug (1)
Packages
- Total packages: 1
-
Total downloads:
- pypi 519 last-month
- Total dependent packages: 0
- Total dependent repositories: 5
- Total versions: 11
- Total maintainers: 2
pypi.org: pyphot
A tool for computing photometry from spectra
- Documentation: https://pyphot.readthedocs.io/
- License: MIT License
-
Latest release: 1.7.0
published 8 months ago
Rankings
Dependent repos count: 6.6%
Forks count: 8.9%
Stargazers count: 9.5%
Dependent packages count: 10.1%
Average: 10.1%
Downloads: 15.7%
Maintainers (2)
Last synced:
7 months ago
Dependencies
requirements.txt
pypi
- astropy *
- matplotlib *
- numpy *
- pandas *
- scipy *
- tables *
setup.py
pypi
- numpy *
.github/workflows/documentation.yml
actions
- actions/checkout v2 composite
- ad-m/github-push-action master composite
- ammaraskar/sphinx-action master composite
.github/workflows/python-publish.yml
actions
- actions/checkout v2 composite
- actions/setup-python v2 composite
- pypa/gh-action-pypi-publish 27b31702a0e7fc50959f5ad993c78deac1bdfc29 composite
.github/workflows/unittests.yml
actions
- actions/checkout v2 composite
- actions/setup-python v2 composite
pyproject.toml
pypi