/times-excel-reader

Primary LanguagePythonMIT LicenseMIT

Project

Note: this tool is a work in progress and not yet in a useful state

This project is an open source tool to convert TIMES model Excel input files to DD format ready for processing by GAMS. The intention is to make it easier for people to reproduce research results on TIMES models.

TIMES is an energy systems model generator from the International Energy Agency that is used around the world to inform energy policy. It is fully explained in the TIMES Model Documentation.

The Excel input format accepted by this tool is documented in the TIMES Model Documentation PART IV. Additional table types are documented in the VEDA support forum. Example inputs are available at https://github.com/kanors-emr/Model_Demo_Adv_Veda

Development Setup

We recommend using a Python virtual environment:

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

We use the black code formatter. The pip command above will install it along with other requirements. Additionally, you can install a git pre-commit that will ensure that your changes are formatted before creating new commits:

pre-commit install

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.