Misc. Utilities (artpop.util)

API

artpop.util Module

Functions

check_random_state(seed)

Turn seed into a RandomState instance.

check_units(value, default_unit)

Check if an object has units.

check_odd(val[, name])

Raise Exception if val is not odd.

check_xy_dim(xy_dim[, force_odd])

Check the format of xy_dim.

embed_slices(center, model_shape, image_shape)

Get slices to embed smaller model array into larger image array.

fetch_mist_grid_if_needed(phot_system[, ...])

If needed, fetch MIST grid from http://waps.cfa.harvard.edu/MIST.