547d746e09f2a2afc6a276798282b640818c02ef,pgmpy/readwrite/ProbModelXML.py,ProbModelXMLWriter,_add_link,#ProbModelXMLWriter#Any#,318

Before Change


                                                            "directed": edge_data["directed"]})
        etree.SubElement(link, "Comment").text = edge_data["Comment"]
        etree.SubElement(link, "Label").text = edge_data["Label"]
        self._add_additional_properties(link, edge_data["AdditionalProperty"])

    def _add_potential(self):
        pass

After Change


                                                            "directed": edge_data["directed"]})
        etree.SubElement(link, "Comment").text = edge_data["Comment"]
        etree.SubElement(link, "Label").text = edge_data["Label"]
        try:
            self._add_additional_properties(link, edge_data["AdditionalProperties"])
        except KeyError:
            etree.SubElement(link, "AdditionalProperties")

    def _add_potential(self):
        pass

    def dump(self, stream):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pgmpy/pgmpy
Commit Name: 547d746e09f2a2afc6a276798282b640818c02ef
Time: 2015-03-15
Author: vivek425ster@gmail.com
File Name: pgmpy/readwrite/ProbModelXML.py
Class Name: ProbModelXMLWriter
Method Name: _add_link


Project Name: pgmpy/pgmpy
Commit Name: 547d746e09f2a2afc6a276798282b640818c02ef
Time: 2015-03-15
Author: vivek425ster@gmail.com
File Name: pgmpy/readwrite/ProbModelXML.py
Class Name: ProbModelXMLWriter
Method Name: __init__


Project Name: pgmpy/pgmpy
Commit Name: 547d746e09f2a2afc6a276798282b640818c02ef
Time: 2015-03-15
Author: vivek425ster@gmail.com
File Name: pgmpy/readwrite/ProbModelXML.py
Class Name: ProbModelXMLWriter
Method Name: _add_variable