vonNiklasson / graph-dac

Distributed Average Consensus
3 stars 2 forks source link

can you help me? #1

Open PhillipWangAust opened 5 years ago

PhillipWangAust commented 5 years ago

Hello, thank you very much for the code you provided. This is very helpful for understanding the distributed average consensus, but I have some problems when running the code. Can you give me some solutions? File "F:/PythonSpace/graph-dac-master/average consusens/src/cmd.py", line 3, in from Graphs import Network

ModuleNotFoundError: No module named 'Graphs'

vonNiklasson commented 5 years ago

Hi Phillip! Thank you for the star. This repo is part of a final bachelor thesis and is currently somewhat unorganized. We are a bit bad at using branches at the moment so the code is a bit incomplete. I'd suggest using our last working state with commit b5db558 which should contain a working example of our code.

Since our repo has gained more public interest than we anticipated we'll likely structure it with branches and releases in the future.

Please let me know if you have any further questions or problems.

PhillipWangAust commented 5 years ago

Thank you very much for your answer. I look forward to further achievements in your research work.

PhillipWangAust commented 5 years ago

Hi, maybe the version you are using python is a bit confusing, there are some minor problems, I have already labeled it, and if you have time, you can correct it. thank you

File "F:\PythonSpace\graph-dac-master\average consusens\src\GraphConverter\GraphConverter.py", line 29 print origin, destination ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(origin, destination)?

vonNiklasson commented 5 years ago

Yes, the repo is currently designed for Python 2.7, but there's not really any reason not to convert it to 3.x. Depending on the new packages that's going to be used, we'll probably make it work with 3.x later on.

vonNiklasson commented 5 years ago

Hello again @PhillipWangAust, I have made a release of the current working state of the repository, mainly Release 0.1. It will preferably be better to browse and fetch code by the release tags instead of commits since it's prone to change rapidly the coming weeks.

PhillipWangAust commented 5 years ago

Yes, I saw these changes. Thank you very much for all your hard work. Your work is very helpful in understanding the distributed average consensus.