The pLAtYpus model for engagement levels of stakeholders
Project description
pLAtYpus
This repository contains the pLAtYpus model.
Authors and contact
Omar Usmani (Omar.Usmani@TNO.nl)
Installation and use
Installation
Install the model via Pypi:
pip install pLAtYpus_TNO
(or copy the files in the src/pLAtYpus_TNO/ folder) You will also need a configuration file that can be found in the root folder of the Github repository}[https://https://github.com/TNO/pLAtYpus]
Use
Sources
Map data
The map boundaries are taken from eurostat/EuroGeoGraphics https://gisco-services.ec.europa.eu/distribution/v2/nuts/nuts-2021-files.html © EuroGeographics for the administrative boundaries You can download them there and put the into the input/map_data/ folder For running the whole model, you also need survey data in the input/survey_data/ folder Note that the survey data is not yet publically available. Contact the authors for more information. As such, you cannot run all the functions of the model. You can however use the ones in GRETA_tool, or you can use the following code to make the outputs (this code is in the make_all_outputs.py source file)
from ETS_CookBook import ETS_CookBook as cook
try:
from pLAtYpus_TNO import solver
except ModuleNotFoundError:
import solver
try:
from pLAtYpus_TNO import maps
except ModuleNotFoundError:
import maps
def make_all_outputs(parameters):
solver.get_all_evolutions_and_plots(parameters)
maps.make_long_term_average_tables(parameters)
maps.make_area_maps(parameters)
if __name__ == '__main__':
parameters_file_name = 'pLAtYpus.toml'
parameters = cook.parameters_from_TOML(parameters_file_name)
make_all_outputs(parameters)
You can however run the tool part with the provided pLAtYpus.sqlite3 (and its version containing only survey data, used for resets) that is in the output/ folder in the (Github repository}[https://https://github.com/TNO/pLAtYpus]
Licence
pLAtYpus is released under the Apache 2.0 licence. All accompanying documentation and manual are released under the Creative Commons BY-SA 4.0 license.
Libraries/dependencies
For the used libraries, see requirements.txt To create the right running environement, do the following:
- Create virtual environment: python -m venv your_environment_name
- your_environment_name/Scripts/activate.bat
- virtualenv --clear /your_environment_name
- Select interpreter (in help if using VS Codes) and choose the one in your_environment_name
- Kill terminal
- Start new terminal
- Install the requirements: pip install -r requirements.txt
Context, goals, and future developments
Driver
The primary driver for the publication and development of pLAtYpus in this repository is the participation in the GRETA project (funded from the European Union’s HORIZON 2020 Research and Innovation programme under grant agreement N°101022317.).
Goal
The main goal of providing this repository is transparency regarding the assumptions and computations of the pLAtYpus model.
Uses outside GRETA
Prior to GRETA
CODEC
- https://www.sciencedirect.com/science/article/pii/S2214629623000282
- https://publications.tno.nl/publication/34627599/zZ5Fcw/TNO-2018-P11304.pdf
- https://www.sciencedirect.com/science/article/pii/S0960148119313928
After/during GRETA
Future
pLAtYpus will be used in other projects that will be listed here, if deemed relevant and apprpriate within the context of these projects.
Acknowledgments
|
The pLAtYpus model orginally has been developped within [GRETA](https://projectgreta.eu/), which has received funding from the European Union’s HORIZON 2020 Research and Innovation programme under grant agreement N°101022317. |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pLAtYpus_TNO-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89d3ed6480db4c50393d89e4450bac74427e0b0875b285b81b60778abb42c2c1 |
|
MD5 | 14c4fcc72a177c24287195dcab1a6c3e |
|
BLAKE2b-256 | 6c20187eb01edeec357afc0aa22418e5d5a5f2cfa93ba2b485f4ef4c4f75bdb8 |