ModelGrid

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

Bases: object

Generic class

Parameters:
  • lamb (ndarray or str or GridBackend subclass) –

    • 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) – 2D float array of the seds

  • grid (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 subclass, optional) – if str corresponding backend class ‘memory’ = MemoryBackend, ‘cache’ = CacheBackend, ‘disk’ = DiskBackend

Attributes Summary

grid

header

lamb

nbytes

The number of bytes of the object

seds

Methods Summary

copy()

returns a copy of the object

keys()

The grid column names

Attributes Documentation

grid
header
lamb
nbytes

The number of bytes of the object

seds

Methods Documentation

copy()[source]

returns a copy of the object

keys()[source]

The grid column names