We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b1cd87 commit 6cef856Copy full SHA for 6cef856
pymc_marketing/mmm/builders/yaml.py
@@ -21,9 +21,10 @@
21
from typing import Any
22
23
import pandas as pd
24
-import xarray as xr
25
import yaml # type: ignore
26
+from pymc_marketing.utils import from_netcdf
27
+
28
from .deserializers import register_custom_deserializers
29
from .factories import build
30
@@ -96,6 +97,6 @@ def build_from_yaml(
96
97
if (idata_fp := cfg.get("idata_path")) is not None:
98
idata_path = Path(idata_fp)
99
if os.path.exists(idata_path):
- model.idata = xr.open_dataset(idata_path)
100
+ model.idata = from_netcdf(idata_path)
101
102
return model
0 commit comments