This is the library to plot the results for the CROSS model comparison
- cross_tools/plots.py contains all the functions to read the data and plot it
- cross_comparison.py is the python code that interacts with cross_tools/plots.py and creates the plots
- cross_comparison.ipynb is the python notebook that shows how to use cross_tools/plots.py to create the plots
- results/ is the folder where the results that are uploaded
- presentation_latex/ is a folder with a template in latex to generate the plots
- See requirements.txt.
- Create a python virtual environment doing the following:
python -m venv /path_to/cross-comparison(This command creates a virtual environment called "cross-comparison")- Mac-Os X and Unix based operating systems:
source /path_to/cross-comparison/bin/activate(This command activates the "cross-comparison" environment.) - Windows operating system:
/path_to/cross-comparison/Scripts/activate.bat(This command activates the "cross-comparison" environment.) cdto the folder where you cloned the codepip install -r requirements.txt(This command installs all the required python packages.)
- Run/edit cross_comparison.py.
- Create a python virtual environment for this project. For example, if you use conda for python package management, do the following:
conda create -n cross-comparison(This command creates a virtual environment called "cross-comparison")conda activate cross-comparison(This command activates the "cross-comparison" environment.)cdto the folder where you cloned the codepip install -r requirements.txt(This command installs all the required python packages.)
- Run/edit cross_comparison.py.
© 2025, ETH Zurich, Energy Science Center, Adriana Marcucci
This code was developed by the SWEET CoSI consortium, which is sponsored by the Swiss Federal Office of Energy’s SWEET programme.
Licensed under the Apache License, Version 2.0 (the "LICENSE"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
In the academic spirit of collaboration, the source code should be appropriately acknowledged in the resulting scientific disseminations. You may cite it as follows:
Marcucci, A. (2024). Code for production of CROSS model comparison plots. DOI: [10.5905/ethz-1007-780] (http://doi.org/10.5905/ethz-1007-780)