spines.models.decorators

Decorators for Models

spines.models.decorators.finalize_post(store: Type[spines.parameters.store.ParameterStore], func)[source]

Finalizes the store prior to executing the function

Parameters
  • store (ParameterStore) – The parameter store to finalize.

  • func (callable) – The function to wrap.

Returns

The wrapped function.

Return type

callable

Raises

MissingParameterException – If there’s a parameter missing from the required parameters in the given store.

spines.models.decorators.finalize_pre(store: Type[spines.parameters.store.ParameterStore], func)[source]

Finalizes the store prior to executing the function

Parameters
  • store (ParameterStore) – The parameter store to finalize.

  • func (callable) – The function to wrap.

Returns

The wrapped function.

Return type

callable

Raises

MissingParameterException – If there’s a parameter missing from the required parameters in the given store.