GithubHelp home page GithubHelp logo

saeedghsh / arrangement Goto Github PK

View Code? Open in Web Editor NEW
11.0 6.0 5.0 21.2 MB

A python implementation of arrangement for straight lines and circles (and their segments) in Euclidean space.

License: GNU General Public License v3.0

Python 100.00%
computational-geometry python two-dimensional arrangement python3 python2 decomposition subdivision

arrangement's People

Contributors

dependabot[bot] avatar saeedghsh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

arrangement's Issues

[networkx backward compatibility issue] TypeError: 'int' object is not iterable while running demo.py

I've tried the demo.py but having
File "demo.py", line 74, in
arrange = arr.Arrangement(traits, config)
File "/home/jaycha/Repo/Map_Fine_Tuning/arrangement/arrangement/arrangement.py", line 697, in init
self._decompose()
File "/home/jaycha/Repo/Map_Fine_Tuning/arrangement/arrangement/arrangement.py", line 1033, in _decompose
faces = self._decompose_graph(sg)
File "/home/jaycha/Repo/Map_Fine_Tuning/arrangement/arrangement/arrangement.py", line 1649, in _decompose_graph
face_tmp = [allHalfEdgeIdx[openListIdx]]
File "/home/jaycha/Repo/Map_Fine_Tuning/venv/local/lib/python2.7/site-packages/networkx/classes/reportviews.py", line 1106, in getitem
u, v, k = e
TypeError: 'int' object is not iterable

AttributeError: 'MultiDiGraph' object has no attribute 'node' while running demo.py

Hi! I am using Python3 and all the requirements are satisfied after installing the dependencies. However, when I run demo.py, it shows the following error:

ile "demo.py", line 74, in
arrange = arr.Arrangement(traits, config)
File "/Users/xx/arrangement/arrangement/arrangement.py", line 692, in init
self._construct_edges()
File "/Users/xx/arrangement/arrangement/arrangement.py", line 1424, in _construct_edges
for (tVal,cIdx) in zip(self.graph.node[nodeIdx]['obj']._traitTval,
AttributeError: 'MultiDiGraph' object has no attribute 'node'

Could you please help to solve the issue? Thank you!

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.