From d108c18065b0322f3d2565e3abd0f29a13fcd5d7 Mon Sep 17 00:00:00 2001 From: Mikel Cortes Date: Thu, 30 Nov 2023 12:50:03 +0000 Subject: [PATCH] update dependencies for DHT module --- DHT/dhtSmallConf.py | 4 +- DHT/requirements.txt | 116 ++++++++++++++++++++++++++++ DHT/retrieval_on_das_plotting.ipynb | 7 +- install_dependencies.sh | 3 +- 4 files changed, 124 insertions(+), 6 deletions(-) create mode 100644 DHT/requirements.txt diff --git a/DHT/dhtSmallConf.py b/DHT/dhtSmallConf.py index 1384c9d..35a797d 100644 --- a/DHT/dhtSmallConf.py +++ b/DHT/dhtSmallConf.py @@ -8,9 +8,9 @@ studyType = "retrieval" # Network jobs = 8 -nodeNumber = [12_000] +nodeNumber = [2_000] nodesRetrieving = [100] -samples = [100] +samples = [20] fastErrorRate = [10] slowErrorRate = [0] connectionDelayRange = [range(50, 76, 1)] # ms diff --git a/DHT/requirements.txt b/DHT/requirements.txt new file mode 100644 index 0000000..681969d --- /dev/null +++ b/DHT/requirements.txt @@ -0,0 +1,116 @@ +anyio==4.1.0 +argon2-cffi==23.1.0 +argon2-cffi-bindings==21.2.0 +arrow==1.3.0 +asttokens==2.4.1 +async-lru==2.0.4 +attrs==23.1.0 +Babel==2.13.1 +beautifulsoup4==4.12.2 +bitarray==2.8.0 +bleach==6.1.0 +certifi==2023.11.17 +cffi==1.16.0 +charset-normalizer==3.3.2 +comm==0.2.0 +contourpy==1.2.0 +cycler==0.12.1 +debugpy==1.8.0 +decorator==5.1.1 +defusedxml==0.7.1 +dicttoxml==1.7.16 +exceptiongroup==1.2.0 +executing==2.0.1 +fastjsonschema==2.19.0 +fonttools==4.45.1 +fqdn==1.5.1 +idna==3.6 +ipykernel==6.27.1 +ipython==8.18.1 +ipywidgets==8.1.1 +isoduration==20.11.0 +jedi==0.19.1 +Jinja2==3.1.2 +joblib==1.2.0 +json5==0.9.14 +jsonpointer==2.4 +jsonschema==4.20.0 +jsonschema-specifications==2023.11.1 +jupyter==1.0.0 +jupyter-console==6.6.3 +jupyter-events==0.9.0 +jupyter-lsp==2.2.1 +jupyter_client==8.6.0 +jupyter_core==5.5.0 +jupyter_server==2.11.1 +jupyter_server_terminals==0.4.4 +jupyterlab==4.0.9 +jupyterlab-widgets==3.0.9 +jupyterlab_pygments==0.3.0 +jupyterlab_server==2.25.2 +kiwisolver==1.4.5 +MarkupSafe==2.1.3 +matplotlib==3.8.2 +matplotlib-inline==0.1.6 +mistune==3.0.2 +mplfinance==0.12.9b7 +nbclient==0.9.0 +nbconvert==7.11.0 +nbformat==5.9.2 +nest-asyncio==1.5.8 +networkx==3.2.1 +notebook==7.0.6 +notebook_shim==0.2.3 +numpy==1.26.2 +overrides==7.4.0 +packaging==23.2 +pandas==2.1.3 +pandocfilters==1.5.0 +parso==0.8.3 +pexpect==4.9.0 +Pillow==10.1.0 +platformdirs==4.0.0 +plotly==5.18.0 +progressbar==2.5 +prometheus-client==0.19.0 +prompt-toolkit==3.0.41 +psutil==5.9.6 +ptyprocess==0.7.0 +pure-eval==0.2.2 +pycparser==2.21 +Pygments==2.17.2 +pyparsing==3.1.1 +python-dateutil==2.8.2 +python-json-logger==2.0.7 +pytz==2023.3.post1 +PyYAML==6.0.1 +pyzmq==25.1.1 +qtconsole==5.5.1 +QtPy==2.4.1 +referencing==0.31.1 +requests==2.31.0 +rfc3339-validator==0.1.4 +rfc3986-validator==0.1.1 +rpds-py==0.13.2 +seaborn==0.13.0 +Send2Trash==1.8.2 +six==1.16.0 +sniffio==1.3.0 +soupsieve==2.5 +stack-data==0.6.3 +tenacity==8.2.3 +terminado==0.18.0 +tinycss2==1.2.1 +tomli==2.0.1 +tornado==6.4 +traitlets==5.14.0 +types-python-dateutil==2.8.19.14 +typing_extensions==4.8.0 +tzdata==2023.3 +uri-template==1.3.0 +urllib3==2.1.0 +wcwidth==0.2.12 +webcolors==1.13 +webencodings==0.5.1 +websocket-client==1.6.4 +widgetsnbextension==4.0.9 diff --git a/DHT/retrieval_on_das_plotting.ipynb b/DHT/retrieval_on_das_plotting.ipynb index 0e79446..86ffaea 100644 --- a/DHT/retrieval_on_das_plotting.ipynb +++ b/DHT/retrieval_on_das_plotting.ipynb @@ -15,8 +15,8 @@ "import plots\n", "\n", "# Necessary folders to start\n", - "CSV_FOLDER = \"./csvs/retrieval_3\"\n", - "IMG_FOLDER = \"./imgs/retrieval_3\"\n", + "CSV_FOLDER = \"./csvs/retrieval_test\"\n", + "IMG_FOLDER = \"./imgs/retrieval_test\"\n", "\n", "# make sure that the output folder exists\n", "make_folder(IMG_FOLDER, \"keeping track of the generated images\")\n" @@ -92,7 +92,8 @@ " },})" ], "metadata": { - "collapsed": false + "collapsed": false, + "is_executing": true } }, { diff --git a/install_dependencies.sh b/install_dependencies.sh index 192594e..47e38d2 100644 --- a/install_dependencies.sh +++ b/install_dependencies.sh @@ -1,4 +1,4 @@ -VENV="./myenv" +VENV="./venv" echo "Installing dependencies for DAS..." @@ -16,5 +16,6 @@ git submodule update --init # install requirements for DAS and py-dht and install the dht module from py-dht pip3 install -r DAS/requirements.txt +pip3 install -r DHT/requirements.txt pip3 install -r py-dht/requirements.txt python -m pip install -e py-dht/