f7e16c6997c76bd77c06ea0284a784e2ef029a5c,arviz/utils/xarray_utils.py,PyStanToNetCDF,default_varnames_coords_dims,#Any#Any#Any#,470

Before Change


            if varname not in dims:
                if len(vals.shape) == 1:
                    vals = np.expand_dims(vals, axis=1)
                vals = np.swapaxes(vals, 0, 1)
                shape_len = len(vals.shape)
                if shape_len == 2:
                    dims[varname] = []
                else:

After Change


            dims = {}
        for varname, dim in zip(obj.sim["pars_oi"], obj.sim["dims_oi"]):
            if varname not in dims:
                if varname == "lp__":
                    continue
                dims[varname] = [
                    "{}_dim_{}".format(varname, idx)
                    for idx in range(1, len(dim)+1)
                ]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: arviz-devs/arviz
Commit Name: f7e16c6997c76bd77c06ea0284a784e2ef029a5c
Time: 2018-08-27
Author: ari.hartikainen@aalto.fi
File Name: arviz/utils/xarray_utils.py
Class Name: PyStanToNetCDF
Method Name: default_varnames_coords_dims


Project Name: bashtage/linearmodels
Commit Name: 07dd6825429f371300a2ffbdc2978422823958e7
Time: 2017-04-26
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/panel/model.py
Class Name: FirstDifferenceOLS
Method Name: fit


Project Name: arviz-devs/arviz
Commit Name: d55bad55b6a9e97f800c97c73038bc5ed8d4b31f
Time: 2018-11-03
Author: ahartikainen@users.noreply.github.com
File Name: arviz/data/io_pystan.py
Class Name: PyStanConverter
Method Name: prior_to_xarray