When running %run -i 05_wkt_to_G.py configs/dar_tutorial_cpu.json in dar_tutorial_cpu/cresi_cpu_part2.ipynb, I get the following error (the key 'geometry' is not present within G_projected.edges"
KeyError Traceback (most recent call last)
~/Desktop/cresi/cresi/05_wkt_to_G.py in <module>
1281 ###############################################################################
1282 if __name__ == "__main__":
-> 1283 main()
~/Desktop/cresi/cresi/05_wkt_to_G.py in main()
1272 pool.map(wkt_to_G, params)
1273 else:
-> 1274 wkt_to_G(params[0])
1275
1276 tf = time.time()
~/Desktop/cresi/cresi/05_wkt_to_G.py in wkt_to_G(params)
918 for i,(u,v,attr_dict) in enumerate(G_projected.edges(data=True)):
919 print (attr_dict)
--> 920 attr_dict['geometry_wkt'] = attr_dict['geometry'].wkt
921
922 if verbose:
KeyError: 'geometry'
I've also printed the keys/values in G_projected.edges here for example until it threw me that error:
When running
%run -i 05_wkt_to_G.py configs/dar_tutorial_cpu.json
in dar_tutorial_cpu/cresi_cpu_part2.ipynb, I get the following error (the key 'geometry' is not present within G_projected.edges"I've also printed the keys/values in G_projected.edges here for example until it threw me that error: