Traceback (most recent call last):


 "./main1.py", line 159, in <module>

DTrain
= km.Model(inputs=[Di, GANi], outputs=[D_loss])


 "/usr/local/lib/python3.5/dist-packages/keras/legacy/interfaces.py", line 87, in wrapper

return func(*args, **kwargs)


 "/usr/local/lib/python3.5/dist-packages/keras/engine/topology.py", line 1635, in __init__

build_map_of_graph(x, seen_nodes, depth=0)


 "/usr/local/lib/python3.5/dist-packages/keras/engine/topology.py", line 1626, in build_map_of_graph

next_node = layer.inbound_nodes[node_index]
AttributeError: 'NoneType' object has no attribute 'inbound_nodes'

Traceback (most recent call last):


 "/Users/nipun/git/nilmtk/nilmtk/tests/test_metergroup.py", line 78, in test_proportion_of_energy_submetered

self.assertEqual(mg.proportion_of_energy_submetered(), 1.0)


 "/Users/nipun/git/nilmtk/nilmtk/metergroup.py", line 1046, in proportion_of_energy_submetered

downstream_meters = self.meters_directly_downstream_of_mains()


 "/Users/nipun/git/nilmtk/nilmtk/metergroup.py", line 793, in meters_directly_downstream_of_mains

meters = nodes_adjacent_to_root(self.wiring_graph())


 "/Users/nipun/git/nilmtk/nilmtk/utils.py", line 91, in nodes_adjacent_to_root

root = tree_root(graph)


 "/Users/nipun/git/nilmtk/nilmtk/utils.py", line 80, in tree_root

roots = [node for node, in_degree in graph.in_degree_iter()
AttributeError: 'DiGraph' object has no attribute 'in_degree_iter'
