MemoryBackend

class beast.physicsmodel.helpers.gridbackends.MemoryBackend(lamb, seds=None, grid=None, cov_diag=None, cov_offdiag=None, header={}, aliases={})[source]

Bases: GridBackend

Instanciate a grid object that has no physical storage

Helps to create new grids on the fly. Because it derives from ModelGrid, this can be exported on disk too.

Parameters:
  • lamb (ndarray or str or GridBackend subclass) – if ndarray - 1D float wavelength of the SEDs (requires seds and grid arguments) if str - filename of grid on disk if backend - ref to the given grid

  • seds (ndarray, optional) – 2D float array of seds

  • grid (astropy.Table, optional) – table of properties associated to each sed

  • cov_diag (ndarray, optional) – 2D float array (# models, # filters) of the diagonal elements of the absolute flux covariance matrix

  • cov_offdiag (ndarray, optional) – 2D float array (# models, # elements) of the off diagonal elements of the absolute flux covariance matrix

  • header (dict, optional) – if provided, update the grid table header

  • aliases (dict, optional) – if provided, update the grid table aliases

Attributes Summary

filters()

Methods Summary

copy()

implement a copy method

Attributes Documentation

filters

Methods Documentation

copy()[source]

implement a copy method