Skip to main content

Support for Tensorflow Hub modules in GalSim

Project description

GalSim Hub

GalSim Hub provides a collection of TensorFlow modules for GalSim.


To install:

 $ pip install --user galsim-hub


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

Download files

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

Files for galsim-hub, version 0.0.1rc2
Filename, size File type Python version Upload date Hashes
Filename, size galsim_hub-0.0.1rc2-py3-none-any.whl (5.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size galsim_hub-0.0.1rc2.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page