tdeetjen / simple_dispatch

Simple Dispatch method for modeling the U.S. power sector and simulating marginal emissions factors (MEFs)
13 stars 6 forks source link

Updates for Python 3.x, newer versions of packages #2

Closed SiobhanPowell closed 2 years ago

SiobhanPowell commented 3 years ago

Hi Thomas, This branch includes several small changes to get the model running with more recent versions of Python and some packages:

I also found two small instances where plotting functions used a static copy of bs rather than the one they were passed, and I added handling for one nan instance in calcFuelPrices().

I wrote a small test file to check/demonstrate that it runs with the changes - would you like me to add that to this PR? To anyone else reading this: it is available on my forked version of the repo.

Thank you for making this model available and for commenting it so thoroughly. Best, Siobhan