>>> 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()]