PyPSA meets Africa is a free and open source software initiative aiming to develop a powerful energy system model for Africa. The tool which is currently under development and will be heavily based on PyPSA and PyPSA-Eur. In 2022 we will focus on Earth wide expansion. Stay tuned and join our mission!
A short presentation about our project and its aims is given on our website. There you can also sign-up to our Newsletter. Watch our latest discussion with African leaders about Open Energy System Modelling in Africa: State of the Art and Future Opportunities. Let's work together for a better future.
There are multiple ways to get involved and learn more about our work. That's how we organise ourselves:
- Discord NEW! (Open)
- General code meeting (Open)
- every second Thursday 16-17:00 (UK time) download .ics
- join for project news and high-level code updates
- meeting on Zoom, password: energy101
- open agenda. See what we will discuss. Invited members have edit rights.
- Buddy talk (Open)
- every Friday between 17-18:00 (UK time)
- book a 20min meeting with Max to discuss anything you like
- booking link: app.autobook.me/max-parzen/pypsa-meets-africa (developed by @mnm-matin)
- Specific code meeting (by invitation)
- current meetings: 1) AI asset detection (WP6) and 2) Data workflow updates (covering WP1-WP5)
- every week Friday 1) 14-14:45 (UK time), 2) 15-16:00 (UK time)
- updates, demos, task distribution, weekly targets, Q&A
- Outreach meeting (by invitation)
- every second week
- planning, discussing events, workshops, communication, community activities
- Google Drive (by invitation)
- access to presentations, lists, documents
- Open your terminal at a location where you want to install pypsa-africa. Type the following in your terminal to download the package from GitHub:
.../some/path/without/spaces % git clone https://github.com/pypsa-meets-africa/pypsa-africa.git
- The python package requirements are curated in the
envs/environment.yaml
file. The environment can be installed using:
.../pypsa-africa % conda env create -f envs/environment.yaml
-
For running the optimization one has to install the solver. We can recommend the open source HiGHs solver which installation manual is given here.
-
To use jupyter lab (new jupyter notebooks) continue with the ipython kernel installation and test if your jupyter lab works:
.../pypsa-africa % ipython kernel install --user --name=pypsa-africa
.../pypsa-africa % jupyter lab
- In the folder open a terminal/command window to be located at this path
~/pypsa-africa/
- Activate the environment
conda activate pypsa-africa
- Rename config.tutorial.yaml to config.yaml. For instance in Linux:
mv config.tutorial.yaml config.yaml
- Run a dryrun of the Snakemake workflow by typing simply in the terminal:
Remove the -n to do a real run. Follow the tutorial of PyPSA-Eur 1 and 2 on YouTube to continue with an analysis.
snakemake -j 1 solve_all_networks -n
The documentation is available here: documentation.