andrewlyden / PyLESA

Python for Local Energy Systems Analysis
MIT License
13 stars 11 forks source link

Getting some ducks into a row... #4

Closed thisistheplace closed 4 months ago

thisistheplace commented 4 months ago

Hi @andrewlyden,

This PR looks quite big since a lot of files have been touched but the changes are all related to usability and moving to Python 3 (apart from the initial performance improvement mentioned below). I think it's worth getting these changes in before moving onto the automated testing / refactoring since they'll benefit of the next stages of development.

Future PRs will be much smaller I promise!

Changes included in this PR are:

I've checked that the a few of the results in the KPI output CSV files that are committed in the repo (WWHC_FOC_WM) match outputs produced by the version of pylesa in this PR. The economic/technical/outputs csv values are within 0.5% of each other (apart from "local_RES_used" which is within 1%). I assume this difference is due to the move to python 3 and the resulting changes in all the imported libraries. Hard to dig any deeper into this given there isn't any proper testing yet.

Hope the changes seem reasonable.

I've set this PR to merge into master but happy to merge into a "develop" branch if you want to keep master clean for "released" versions.

Thanks,

Ben