Blockchain-Technology-Lab / consensus-decentralization

Tool that analyzes blockchain decentralization on the consensus layer by looking at the block production distributions of various blockchain systems.
https://blockchain-technology-lab.github.io/consensus-decentralization
MIT License
25 stars 6 forks source link

Cannot run metrics directly #33

Closed dimkarakostas closed 1 year ago

dimkarakostas commented 1 year ago

When trying to run a metric directly from its file (e.g., python gini.py ../../output/bitcoin/2022.csv), I get an error: ModuleNotFoundError: No module named 'src'.

LadyChristina commented 1 year ago

You just need to run it as a module from the root directory of the project: python -m src.metrics.gini output/bitcoin/2022.csv

LadyChristina commented 1 year ago

However, I think that this is an issue for parse.py , analyze.py and map.py

LadyChristina commented 1 year ago

Closed as outdated (since parse, analyze and map can no longer be run as standalone scripts)