89a87efd655e08a1e58e7d23eb1fde3400ecf694,arviz/data/io_dict.py,DictConverter,posterior_predictive_to_xarray,#DictConverter#,145

Before Change


    @requires("posterior_predictive")
    def posterior_predictive_to_xarray(self):
        Convert posterior_predictive samples to xarray.
        data = self.posterior_predictive
        data_warmup = (
            self.warmup_posterior_predictive if self.warmup_posterior_predictive is not None else {}
        )
        if not isinstance(data, dict):
            raise TypeError("DictConverter.posterior_predictive is not a dictionary")
        if not isinstance(data_warmup, dict):
            raise TypeError("DictConverter.warmup_posterior_predictive is not a dictionary")

After Change


        )

    @requires(["posterior_predictive", f"{WARMUP_TAG}posterior_predictive"])
    def posterior_predictive_to_xarray(self):
        Convert posterior_predictive samples to xarray.
        data = self._init_dict("posterior_predictive")
        data_warmup = self._init_dict(f"{WARMUP_TAG}posterior_predictive")
        if not isinstance(data, dict):
            raise TypeError("DictConverter.posterior_predictive is not a dictionary")
        if not isinstance(data_warmup, dict):
            raise TypeError("DictConverter.warmup_posterior_predictive is not a dictionary")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 11

Instances


Project Name: arviz-devs/arviz
Commit Name: 89a87efd655e08a1e58e7d23eb1fde3400ecf694
Time: 2020-09-22
Author: oriol.abril.pla@gmail.com
File Name: arviz/data/io_dict.py
Class Name: DictConverter
Method Name: posterior_predictive_to_xarray


Project Name: arviz-devs/arviz
Commit Name: 89a87efd655e08a1e58e7d23eb1fde3400ecf694
Time: 2020-09-22
Author: oriol.abril.pla@gmail.com
File Name: arviz/data/io_dict.py
Class Name: DictConverter
Method Name: predictions_to_xarray


Project Name: arviz-devs/arviz
Commit Name: 89a87efd655e08a1e58e7d23eb1fde3400ecf694
Time: 2020-09-22
Author: oriol.abril.pla@gmail.com
File Name: arviz/data/io_dict.py
Class Name: DictConverter
Method Name: posterior_to_xarray


Project Name: arviz-devs/arviz
Commit Name: 89a87efd655e08a1e58e7d23eb1fde3400ecf694
Time: 2020-09-22
Author: oriol.abril.pla@gmail.com
File Name: arviz/data/io_dict.py
Class Name: DictConverter
Method Name: posterior_predictive_to_xarray


Project Name: arviz-devs/arviz
Commit Name: 89a87efd655e08a1e58e7d23eb1fde3400ecf694
Time: 2020-09-22
Author: oriol.abril.pla@gmail.com
File Name: arviz/data/io_dict.py
Class Name: DictConverter
Method Name: log_likelihood_to_xarray


Project Name: arviz-devs/arviz
Commit Name: 89a87efd655e08a1e58e7d23eb1fde3400ecf694
Time: 2020-09-22
Author: oriol.abril.pla@gmail.com
File Name: arviz/data/io_dict.py
Class Name: DictConverter
Method Name: sample_stats_to_xarray