From b0d3e5b90b1126b97a7dec679d689d4dfa22b5d1 Mon Sep 17 00:00:00 2001 From: Maximilian Schmidt <max.schmidt@fz-juelich.de> Date: Thu, 29 Mar 2018 09:43:30 +0900 Subject: [PATCH] Add note on PYTHONPATH to README and improve instruction for testsuite --- README.md | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 08c1cd8..9966533 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,19 @@ In principle, we strictly separate the structure of the network input, etc.). The complete set of default parameters for all components of the framework is defined in `default_params.py`. +-------------------------------------------------------------------------------- + +To start using the framework, the user has to define a few environment variables +in a new file called `config.py`. The file `config_template.py` lists the required +environment variables that need to specified by the user. + +Furthermore, please add the path to the `multiarea_model` subfolder to your PYTHONPATH: + +`export PYTHONPATH=/path/to/repository/multiarea_model/:$PYTHONPATH`. + + +-------------------------------------------------------------------------------- + `MultiAreaModel` The central class that initializes the network and contains all @@ -74,10 +87,6 @@ If snakemake is installed, the figures can be produced by executing ## Running a simulation -To start using the framework, the user has to define a few environment variables -in a new file called `config.py`. The file `config_template.py` lists the required -environment variables that need to specified by the user. - A simple simulation can be run in the following way: 1. Define custom parameters custom_params = ... @@ -148,7 +157,11 @@ The multi-area model can be run in different modes. ## Testsuite The `tests/` folder holds a testsuite that tests different aspects of network model initalization and meanfield calculations. -It can be conveniently run by executing `pytest` in the `tests/` folder. +It can be conveniently run by executing `pytest` in the `tests/` folder: + + cd tests/ + pytest + ## Requirements h5py\_wrapper, python\_dicthash ([https://github.com/INM-6/python-dicthash](https://github.com/INM-6/python-dicthash)), -- GitLab