NeuroPowerTools
  • NeuroPower
    • NeuroPower
    • Tutorial
    • Methods
    • FAQ
  • NeuroDesign
    • NeuroDesign
    • Tutorial
    • Methods
    • Beyond the GUI
    • FAQ


NeuroDesign - beyond the gui


Python package

Behind the GUI of this app is a powerful python package doing the math. If you don't like GUI, but you prefer coding up the optimisation yourself, you can find the package on pypi with the package documentation on readthedocs. You can find a few examples of what to do with the package on our github page.

If you want to install the package on your computer, type the following in a terminal:

pip install neurodesign

Reproduce results locally

Imagine one day in the near of faraway future, you wonder where your results came from. Luckily during your optimisation, you can download a python script. If you rerun the script, the results will be saved to the folder /local on your computer. If you don't have a /local folder, you can change this line in the script. To run the script, first install the package as explained above, and then simply run this command:

python location_where_the_script_is/script.py

Reproduce results in a container

We largely value the reproducibility of research. If you locally rerun the code, it might depend on some local libraries and could result in another optimal design. However, to produce the results through our GUI, we use a container, which is a little piece of software that mocks a whole operating system. As such, if you run the code through the same container, you will avoid all local libraries and package versions and get exactly the same results. If you don't know docker, this is probably not the place to learn about it. If you have docker installed, you can pull our docker container from docker hub like this:

docker pull neuropower/neuropower

To rerun the script through the docker container, do the following:

docker run -v /location_where_the_script_is/:/local -it neuropower/neuropower python /local/name_of_the_script.py