This release is a pre-release and may not be stable for production use.
GalSim Hub
GalSim Hub provides a collection of TensorFlow modules for GalSim.
TL;DR
GalSim Hub makes it easy to incorporate galaxy light profiles modelled by deep neural networks directly with a GalSim script:
import galsim
import galsim_hub
from astropy.table import Table
# Load a generative model from the online repository
model = galsim_hub.GenerativeGalaxyModel('hub:Lanusse2020')
# Defines the input conditions, for this model flux_radius, mag_auto, and redshift
catalog = Table([[5., 10. ,20.], [24., 24., 24.], [0.5, 0.5, 0.5] ],
names=['flux_radius', 'mag_auto', 'zphot'])
# Sample light profiles for these parameters
profiles = model.sample(catalog)
...
You can read more, and try out a live demo here:
Installation
To install:
$ pip install --user galsim-hub
Note: GalSim-Hub currently assumes TensorFlow 1.15 to be installed, and will not try to install it as a dependency.
Usage
This module can be used directly under the GalSim Yaml driver:
$ galsim examples/demo14.yaml
or from Python:
import galsim
import galsim_hub
from astropy.table import Table
# Load a generative model from the online repository
model = galsim_hub.GenerativeGalaxyModel('hub:Lanusse2020')
# Defines the input conditions, for this model flux_radius, mag_auto, and redshift
catalog = Table([[5., 10. ,20.], [24., 24., 24.], [0.5, 0.5, 0.5] ],
names=['flux_radius', 'mag_auto', 'zphot'])
# Sample light profiles for these parameters
profiles = model.sample(catalog)
...
Adding a model to the repository
This repository is intended to host a collection of deep generative models, any new contributions are welcome. Submitting your model to the Hub means that it becomes trivially accessible to any GalSim user, increasing the chances that it will be used in practice :-)
To submit a model, please open a Pull Request adding a new folder under the hubdirectory. As the procedure is not currently completely documented, do not hesitate to reach out to the maintainers of the repository for guidance.
Metadata
Release files for galsim-hub 0.0.1rc4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| galsim_hub-0.0.1rc4.tar.gz | 154.1 kB | Without provenance | Details |
Release files / galsim_hub-0.0.1rc4.tar.gz
| Download URL | galsim_hub-0.0.1rc4.tar.gz |
|---|---|
| Size | 154.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45bcd5dbd987f2dfa9a0512a1c5f6c84ff42b7823a6b778b494ce984c13b0940
|
|
BLAKE2b-256 checksum How to use checksums |
55ef63d7fa1199b1d04889b5776951e393d29a8e991e58a0e73003d15cb99111
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
|
Security for galsim-hub 0.0.1rc4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.