create_idata_accessor#

pymc_marketing.model_builder.create_idata_accessor(value, message)[source]#

Create a property accessor for a group of the model’s DataTree.

Underlying object must have a xr.DataTree attribute named ‘idata’.

Parameters:
  • value (str) – The group to access in the DataTree.

  • message (str) – The error message to raise if the group is not found in the DataTree.

Return type:

property

Returns:

The property accessor for the DataTree group.