MarkovState

class aquila_borg.likelihood.MarkovState

Create a new MCMC dictionnary.

newArray1d(self: aquila_borg._borg.likelihood.MarkovState, name: str, N: int, in_mcmc: bool = False) → None

Create and allocate a new 1d array in the dictionnary.

The 1d array holds value in double precision.

Parameters
  • name (str) –

  • N (int) –

Keyword Arguments

in_mcmc (bool) – Default to false.

Raises

KeyError – if name is already present in the MarkovState

newArray3d(self: aquila_borg._borg.likelihood.MarkovState, name: str, N0: int, N1: int, N2: int, in_mcmc: bool = False) → None

Create and allocate a new 3d array in the dictionnary.

The 3d array holds value in double precision.

Parameters
  • name (str) – Requested name of the array

  • N0 (int) – First dimension

  • N1 (int) – Second dimension

  • N2 (int) – Third dimension

Keyword Arguments

in_mcmc (bool) – Default to false.

Raises

KeyError – if name is already present in the MarkovState

newArray3d_slab(self: aquila_borg._borg.likelihood.MarkovState, name: str, slab: List[int[6]], real_size: List[int[3]], in_mcmc: bool = False) → None

Create and allocate a new 3d array, with MPI slabbing, in the dictionnary.

The 3d array holds value in double precision.

Parameters
  • name (str) – Requested name of the array

  • slab (tuple of 6 int) – Slab position and size (start0,local_size0,start1,local_size1,start2,local_size2)

  • real_size (tuple of 3 int) – Real size

Keyword Arguments

in_mcmc (bool) – Default to false.

Raises

KeyError – if name is already present in the MarkovState

newForwardModel(self: aquila_borg._borg.likelihood.MarkovState, arg0: str, arg1: aquila_borg._borg.forward.BORGForwardModel) → None

Create a new entry to hold a forward model in the MarkovState.

The forward model is not saved to disk. This entry is used for legacy that requires to store a forward model in the MarkovState.

Parameters
  • name (str) – Name of the entry

  • forward (BORGForwardModel) – A forward model object

newScalar(self: aquila_borg._borg.likelihood.MarkovState, name: str, object: object, in_mcmc: bool = False, type_code: str = ' ') → None

Methods

__init__(self, seed)

newArray1d(self, name, N, in_mcmc)

Create and allocate a new 1d array in the dictionnary.

newArray3d(self, name, N0, N1, N2, in_mcmc)

Create and allocate a new 3d array in the dictionnary.

newArray3d_slab(self, name, slab, real_size, …)

Create and allocate a new 3d array, with MPI slabbing, in the dictionnary.

newForwardModel(self, arg0, arg1)

Create a new entry to hold a forward model in the MarkovState.

newScalar(self, name, object, in_mcmc, type_code)