arfc / pride

(P)lan for (R)ap(I)d (DE)carbonization
BSD 3-Clause "New" or "Revised" License
3 stars 7 forks source link

The capacity plots show the wrong value for the capacity for the first simulation year #162

Closed robfairh closed 3 years ago

robfairh commented 3 years ago

The values in Figure 1 show the capacity of ABBOTT throughout the simulation. The following lines are in the .log file for the ABBOTT's capacity:

    257.0                     V_Capacity[uiuc,ABBOTT,2000]
    191.25647                 V_Capacity[uiuc,ABBOTT,2021]

The values in the figure for 2021 are not equal to the values in the .log file.

The figure shows for 2021, a capacity of more than 600 MW. For the following years, the capacity is between 400 and 500 MW. The .log file indicates that ABBOTT's capacity in 2000 is 257 MW and 191.26 MW are deployed in 2021, giving a total capacity of 448.26 MW.

This phenomenon suggests that there is a bug in data_parser.py. This issue can be closed when the capacity in the plot is equal to the capacity in the .log file.

Figure 1: capacity

robfairh commented 3 years ago

The problem is in data_parser.py, the function 'data_by_variable()' is using the information from V_Capacity and V_CapacityAvailableByPeriodAndTech.