ModelGrid

class beast.physicsmodel.grid.ModelGrid(*args, **kwargs)[source]

Bases: object

Generic class for a minimum update of future codes

Parameters:

*args and **kwargs are directly forwarded to the backend constructor

lamb: ndarray or str or GridBackend

if ndarray: wavelength of the SEDs (requires seds and grid arguments) if str: filename to the grid if backend: ref to the given grid

seds: ndarray[dtype=float, ndim=2]

array of seds

grid: eztable.Table

table of properties associated to each sed

header: dict

if provided, update the grid table header

aliases: dict

if provided, update the grid table aliases

backend: str or GridBackend class or subclass

corresponding backend class

‘memory’: MemoryBackend, ‘cache’: CacheBackend, ‘hdf’: HDFBackend, ‘generic’: GridBackend

Attributes Summary

grid
header
lamb
nbytes return the number of bytes of the object
seds

Methods Summary

copy() returns a copy of the object
keys() returns the grid dimension names

Attributes Documentation

grid
header
lamb
nbytes

return the number of bytes of the object

seds

Methods Documentation

copy()[source]

returns a copy of the object

keys()[source]

returns the grid dimension names