Giter Club home page Giter Club logo

cxnet's People

Contributors

horvatha avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

cxnet's Issues

Fixing Network.cxcolorize method

Network.cxcolorize raise KeyError is it runs on a component.

In [1]: import cxnet

In [2]: net = cxnet.debnetwork()
Getting package names and dependencies.
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Transforming to numbered graph.
Transforming to igraph.
Setting vertex types.

In [3]: cc = net.components(mode='str')

In [4]: sccs = [c for c, s in zip(cc.subgraphs(), cc.sizes()) if s >1]

In [5]: s = sccs[0]

In [6]: s.cxcolorize()

KeyError Traceback (most recent call last)
in ()
----> 1 s.cxcolorize()

/home/ha/.local/lib/python3.7/site-packages/cxnet/debnetworki.py in cxcolorize(self, vcolors, ecolors)
219 assert isinstance(ecolors[i], str),
220 "The ecolors parameter should contain three color names as string"
--> 221 self.normalize()
222 if "type" in self.vs.attributes():
223 for vertex in self.vs:

/home/ha/.local/lib/python3.7/site-packages/cxnet/debnetworki.py in normalize(self)
192 self["revision"] = int(revision)
193
--> 194 del self.vs["id"]
195 integer_attributes = (
196 ("type", self.vs),

KeyError: 'id'

key_err.txt

remove bazaar revision

The network stores the bazaar revision if it exists. As cxnet uses git instead of bazaar now, that should be deleted or replaced with the git commit id.

See the 'revision' graph attribute (net['revision']).

Remove or fix cxnet.get_netdata

  • There is some changes in the urllib api, that prevents to work
  • The original network repository was removed from the www. Should create a new one.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.