BaseGammaGammaModel.load#

classmethod BaseGammaGammaModel.load(fname)#

Creates a ModelBuilder instance from a file, Loads inference data for the model.

Parameters:
fnamestr

This denotes the name with path from where idata should be loaded from.

Returns:
Returns an instance of ModelBuilder.
Raises:
ValueError

If the inference data that is loaded doesn’t match with the model.

Examples
>>> :obj:`class` :obj:`MyModel`\(:obj:`ModelBuilder`):
    ..
>>>     ...
    ..
>>> :obj:`name` = './mymodel.nc'
    ..
>>> :obj:`imported_model` = :obj:`MyModel.load`\(:obj:`name`)
    ..