cc5259cbd55d5cc14e7e9581210b3f5ad9cc5005,arviz/utils/xarray_utils.py,,default_varnames_coords_dims,#Any#Any#Any#,50

Before Change


        dims = {}

    for varname in varnames:
        dims.setdefault(varname, [])

    return varnames, coords, dims

After Change


        dims = {}

    for varname in varnames:
        if varname not in dims:
            vals = trace.get_values(varname, combine=False, squeeze=False)
            vals = np.array(vals)
            shape_len = len(vals.shape)
            if shape_len == 2:
                dims[varname] = []
            else:
                dims[varname] = [f"{varname}_dim_{idx}" for idx in range(1, shape_len-2+1)]

    return varnames, coords, dims


def verify_coords_dims(varnames, trace, coords, dims):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: arviz-devs/arviz
Commit Name: cc5259cbd55d5cc14e7e9581210b3f5ad9cc5005
Time: 2018-06-22
Author: ari.hartikainen@aalto.fi
File Name: arviz/utils/xarray_utils.py
Class Name:
Method Name: default_varnames_coords_dims


Project Name: arviz-devs/arviz
Commit Name: cc5259cbd55d5cc14e7e9581210b3f5ad9cc5005
Time: 2018-06-22
Author: ari.hartikainen@aalto.fi
File Name: arviz/utils/xarray_utils.py
Class Name:
Method Name: default_varnames_coords_dims


Project Name: arviz-devs/arviz
Commit Name: cc5259cbd55d5cc14e7e9581210b3f5ad9cc5005
Time: 2018-06-22
Author: ari.hartikainen@aalto.fi
File Name: arviz/utils/xarray_utils.py
Class Name:
Method Name: pystan_varnames_coords_dims


Project Name: SheffieldML/GPy
Commit Name: 5f3956478fb9e4eea73adb25b6cee82d17cf4e66
Time: 2016-04-04
Author: ibinbei@gmail.com
File Name: GPy/plotting/plotly_dep/plot_definitions.py
Class Name: PlotlyPlots
Method Name: scatter