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.

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


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)

Uploaded Source

Built Distribution

galsim_hub-0.0.1rc2-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page