sk2 / ank_legacy_v2

Legacy edition of autonetkit. Please see https://github.com/sk2/autonetkit for latest version
www.autonetkit.org
BSD 3-Clause "New" or "Revised" License
10 stars 4 forks source link

HIGH: edge_default KeyError #210

Closed iainwp closed 12 years ago

iainwp commented 12 years ago

I get

INFO Loading Traceback (most recent call last): File "/usr/local/bin/autonetkit", line 8, in load_entry_point('AutoNetkit==0.6.0dev-20120203', 'console_scripts', 'autonetkit')() File "/Library/Python/2.7/site-packages/AutoNetkit/console_script.py", line 74, in main inet.load(f_name) File "/Library/Python/2.7/site-packages/AutoNetkit/internet.py", line 139, in load self.network.graph = ank.load_graphml(filename) File "/Library/Python/2.7/site-packages/AutoNetkit/readwrite/graphml.py", line 92, in load_graphml for key, val in input_graph.graph["edge_default"].items(): KeyError: 'edge_default'

when running the latest download on the gr-eg.grapml in ankpol/examples/gr in the svn.

when this is fixed I'll look at issue 199.

Sorry

Iain

sk2 commented 12 years ago

Eeek. I've started on some automated tests, these will hopefully catch this sort of error in future. I was trying to add support for the node/edge defaults (which currently are ignored), but waiting on https://networkx.lanl.gov/trac/ticket/683