openego / eTraGo

Optimization of flexibility options for transmission grids based on PyPSA
GNU Affero General Public License v3.0
32 stars 13 forks source link

Features/adjust db interface #626

Closed ClaraBuettner closed 1 year ago

ClaraBuettner commented 1 year ago

Solves #311

With this branch, the ego.io is not needed anymore. The functions to create a database connection and store connection settings are now part of eTraGo (tools.db). I basically copied function from ego.io, I hope that was fine. The usage of the db section in the args did not changed, but the connection settings are now stored in a different file (.etrago_database/config.ini).

@gnn: Is the general procedure fine? @KathiEsterl or @CarlosEpia: Could you test the installation and start a small test calculation to make sure that it is working correctly? I already tested it, but it would be better to try it out in another setting as well.