Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
P
PyMetric
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • verktoy
  • PyMetric
  • Issues
  • #7

Closed
Open
Opened Feb 14, 2019 by Morten Knutsen@mortenkContributor

One-way-link between two nodes in pajek rases keyError on load

Created by: runborg

When loading a pajek with a one-way link networkx failes computation with a keyError

Traceback (most recent call last):
  File "metrics.py", line 45, in <module>
    cli.cmdloop()
  File "/Users/runarb/src/metric/pymetric/command.py", line 64, in cmdloop
    Cmd.cmdloop(self)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cmd.py", line 221, in onecmd
    return func(arg)
  File "/Users/runarb/src/metric/pymetric/command.py", line 424, in do_plot
    self.gui.plot(G, graphdata, edge_cmap=cmap, edge_capa=capa)
  File "/Users/runarb/src/metric/pymetric/plotting.py", line 292, in plot
    pos=data['pos'])
  File "/Users/runarb/src/metric/pymetric/plotting.py", line 350, in _plot_edge_labels
    if d < 70 and G[v][u]['weight'] == w['weight']:
  File "/Library/Python/2.7/site-packages/networkx/classes/coreviews.py", line 54, in __getitem__
    return self._atlas[key]
KeyError: 'ifi2-gw4'
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: verktoy/PyMetric#7