9916288b1fede659d8a931c324430d97cbd9e92e,pgmpy/models/DynamicBayesianNetwork.py,DynamicBayesianNetwork,get_interface_nodes,#DynamicBayesianNetwork#,222

Before Change


    	>>> dbn.get_interface_nodes()
    	[("D", 0)]
    	
    	if not str(time_slice).isdigit():
            raise ValueError("The timeslice should be a positive value greater than or equal to zero")

    	return [(edge[0][0], time_slice) for edge in self.get_inter_edges()]

After Change


    	>>> dbn.get_interface_nodes()
    	[("D", 0)]
    	
    	if not isinstance(time_slice, int) or time_slice < 0:
            raise ValueError("The timeslice should be a positive value greater than or equal to zero")

    	return [(edge[0][0], time_slice) for edge in self.get_inter_edges()]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: pgmpy/pgmpy
Commit Name: 9916288b1fede659d8a931c324430d97cbd9e92e
Time: 2015-07-29
Author: abhor902@gmail.com
File Name: pgmpy/models/DynamicBayesianNetwork.py
Class Name: DynamicBayesianNetwork
Method Name: get_interface_nodes


Project Name: pgmpy/pgmpy
Commit Name: 9916288b1fede659d8a931c324430d97cbd9e92e
Time: 2015-07-29
Author: abhor902@gmail.com
File Name: pgmpy/models/DynamicBayesianNetwork.py
Class Name: DynamicBayesianNetwork
Method Name: get_slice_nodes


Project Name: pgmpy/pgmpy
Commit Name: 9916288b1fede659d8a931c324430d97cbd9e92e
Time: 2015-07-29
Author: abhor902@gmail.com
File Name: pgmpy/models/DynamicBayesianNetwork.py
Class Name: DynamicBayesianNetwork
Method Name: get_intra_edges