Support for Tensorflow Hub modules in GalSim
Project description
GalSim Hub
GalSim Hub provides a collection of TensorFlow modules for GalSim.
Installation
To install:
$ pip install --user galsim-hub
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
model = galsim_hub.GenerativeGalaxyModel('hub:cosmos_size_mag')
# Defines the input conditions, for this model flux_radius and mag_auto
cat = Table([[5., 10. ,20.], [24., 24., 24.] ],
names=['flux_radius', 'mag_auto'])
# Sample light profiles for these parameters
ims = model.sample(cat)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
galsim_hub-0.0.1rc2.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for galsim_hub-0.0.1rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c80095a6f3dbbc5fcc7535f6fa70dbed4814198351d6a3b2a2c24fb68c95cf39 |
|
MD5 | cf46d070ebd68bca92fa7d4476b33b45 |
|
BLAKE2b-256 | 687e732154da9b3473316733f7c4210e9ef03ad78a1a96106ecc1c94606a7f2a |