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:
valuestr

The group to access in the DataTree.

messagestr

The error message to raise if the group is not found in the DataTree.

Returns:
property

The property accessor for the DataTree group.