migrate_idata#

pymc_marketing.serialization_migration.migrate_idata(idata)[source]#

Migrate DataTree attrs from old format to current version.

Parameters:
idataxr.DataTree

The DataTree to migrate. Modified in-place and returned.

Returns:
xr.DataTree

The same object, with attrs updated to current version.