![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
syntheticstellarpopconvolve
Advanced tools
synthetic stellar pop convolve is a python package to convolve output of stellar population synthesis codes with star formation rates.
This repository contains the code and documentation for the synthetic
stellar-population convolution code-base Synthetic Stellar Pop Convolve (SSPC)
. SSPC
is available in a Gitlab
repository
as well as on
Pypi.
The code was originally developed by David Hendriks (with invaluable help from Lieke van Son) for the project of Hendriks et al. 2023 (MNRAS), where it was used to convolve gravitational-wave merger events from binary systems as well as supernova events from both binary systems and single stars with a cosmological star-formation rate.
SSPC can be used to convolve the output of stellar population-synthesis codes with (cosmological) starformation rates. It can convolve both event-based (line by line) data, as well as ensemble-based (nested histogram) data. The user must provide information about the column/layer that contains the necessary data to perform the convolution, which is at minimum the delay-time and the normalized yield. The latter quantity gets multiplied directly with the appropriate SFR, and as such should already be weighted by e.g. binary fractions, importance-sampling weights and others.
It is possible to provide additional weights during convolution, which can include things like detection probability that depend on redshift.
list of some current features:
In the coming period I will:
Future features I aim to add in the foreseeable future:
The code is in late-beta stage, and is largely covered in unit-tests, but its not entirely finished just yet and likely still contains some bugs that I have not been able to pick up. Thats where this community can come in! I think this code could become useful for many pop-synth groups, especially when people submit git issues for bugs and feature requests!
As I said the code is not fully stable yet but I do invite people to start having a look at the code-base and try out installing.
If anyone has questions, hit me up on the LISA-UCB slack channel or send me an email on mail@davidhendriks.com.
The Python packages that are required for this code to run are listed in the requirements.txt
, which automatically gets read out by setup.py
.
To install this package via pip:
pip install syntheticstellarpopconvolve
To install the binary_c-python
from source, which is useful for development versions and customisation, run
./install.sh
This will install the package, along with all the dependencies, into the current active (virtual) python environment.
Documentation is available in the repository and on readthedocs where we provide tutorial and example use-case notebooks
If you want to contribute to the code, then it is recommended that you install the packages in development_requirements.txt
:
pip install -r development_requirements.txt
Please do not hesitate to contact us to discuss any contribution. Please see HOW_TO_CONTRIBUTE
.
Some useful commands to generate documentation and coverage reports are stored in the commands/
directory.
We use the following naming convention for development and release branches:
development/<binary_c-python version>/<binary_c version>
releases/<binary_c-python version>/<binary_c version>
To build the documentation manually, run
./generate_docs.sh
from within the commands/
directory. Note: this requires pandoc
to be installed on your machine.
To generate the unit test and docstring coverage report, run
./generate_reports.sh
from within the commands/
directory.
FAQs
synthetic stellar pop convolve is a python package to convolve output of stellar population synthesis codes with star formation rates.
We found that syntheticstellarpopconvolve demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.