CacheBackend

class beast.physicsmodel.helpers.gridbackends.CacheBackend(fname, *args, **kwargs)[source]

Bases: GridBackend

Load content from a file only when needed

Parameters:

fname (str) – name of file containing the grid

Attributes Summary

cov_diag

cov_offdiag

filters

grid

header

lamb

seds

Methods Summary

clear([attrname])

clear current cache

copy()

implement a copy method

keys()

return column names when possible, avoid loading when possible

Attributes Documentation

cov_diag
cov_offdiag
filters
grid
header
lamb
seds

Methods Documentation

clear(attrname=None)[source]

clear current cache

Parameters:

attrname (str in [lamb, filters, grid, header, lamb, seds]) – if provided clear only one attribute else all cache will be erased

copy()[source]

implement a copy method

keys()[source]

return column names when possible, avoid loading when possible