Giter Club home page Giter Club logo

iota_simulation's People

Contributors

manuelzander avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

iota_simulation's Issues

Metrics of the simulator

Hello, Manuel,

I am Luciano, master student from the University of Sao Paulo, Brazil. I saw this project you've made, and I found it really interesting.
I have one doubt: reading you master thesis, I've found lots of images of some metrics of the simulator. How did you do them? I ask this question because, when we run the core.py script in the repo, it only returns us the number of tips vs time plot and the plot of the Tangle graph during the time. There are some other ones, such as probabilities to attach to a subtangle branch while simulating the parasite chain attack, that I could not find in the repo.

Regards

Luciano Augusto Campagnoli da Silva

Tests: list index out of range error

I get the same index out of range error in 5 tests, all on self.no_of_transactions = self.config[0][0].

Error:

'PARAMETERS'
E'PARAMETERS'
E'PARAMETERS'
E'PARAMETERS'
E'PARAMETERS'
E
======================================================================
ERROR: test_calculation_conf_conf (tests.test_basic.AfterSimulationWeightedRandomWalkTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/theo/iota_simulation/tests/test_basic.py", line 35, in setUp
    self.simu = Multi_Agent_Simulation(100, 10, 2, 0.005, 1, distances, "weighted")
  File "/Users/theo/iota_simulation/simulation/simulation_multi_agent.py", line 27, in __init__
    self.no_of_transactions = self.config[0][0]
IndexError: list index out of range

======================================================================
ERROR: test_calculation_cum_weight (tests.test_basic.AfterSimulationWeightedRandomWalkTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/theo/iota_simulation/tests/test_basic.py", line 35, in setUp
    self.simu = Multi_Agent_Simulation(100, 10, 2, 0.005, 1, distances, "weighted")
  File "/Users/theo/iota_simulation/simulation/simulation_multi_agent.py", line 27, in __init__
    self.no_of_transactions = self.config[0][0]
IndexError: list index out of range

======================================================================
ERROR: test_calculation_exit_probabilities (tests.test_basic.AfterSimulationWeightedRandomWalkTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/theo/iota_simulation/tests/test_basic.py", line 35, in setUp
    self.simu = Multi_Agent_Simulation(100, 10, 2, 0.005, 1, distances, "weighted")
  File "/Users/theo/iota_simulation/simulation/simulation_multi_agent.py", line 27, in __init__
    self.no_of_transactions = self.config[0][0]
IndexError: list index out of range

======================================================================
ERROR: test_simulation_run (tests.test_basic.SimulationSetupAndRunTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/theo/iota_simulation/tests/test_basic.py", line 17, in setUp
    self.simu = Multi_Agent_Simulation(100, 10, 2, 0.005, 1, distances, "weighted")
  File "/Users/theo/iota_simulation/simulation/simulation_multi_agent.py", line 27, in __init__
    self.no_of_transactions = self.config[0][0]
IndexError: list index out of range

======================================================================
ERROR: test_simulation_setup (tests.test_basic.SimulationSetupAndRunTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/theo/iota_simulation/tests/test_basic.py", line 17, in setUp
    self.simu = Multi_Agent_Simulation(100, 10, 2, 0.005, 1, distances, "weighted")
  File "/Users/theo/iota_simulation/simulation/simulation_multi_agent.py", line 27, in __init__
    self.no_of_transactions = self.config[0][0]
IndexError: list index out of range

----------------------------------------------------------------------
Ran 5 tests in 0.002s

FAILED (errors=5)

Add additional requirements

Add these two requirements not installed by your makefile:

  • Virtualenv (pip3 install virtualenv)
  • Scipy (pip3 install scipy)

Pygraphviz installation fix

Pip's install of pygraphviz is currently broken (doesn't install dependencies correctly). This breaks your makefile.

Simple fix: add the following to your readme before make

brew install graphviz
pip3 install pygraphviz

The makefile works fine after running these.

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.