emlab-ucsb / ca-transport-supply-decarb

2 stars 2 forks source link

its_fuel_demand_prod.R can no longer create figures #1

Open measrainsey opened 1 year ago

measrainsey commented 1 year ago

when i try to run its_fuel_demand_prod.R, the script fails when it gets to the plotting part and gives the following error:

Error in `geom_line()`:
! Problem while computing aesthetics.
ℹ Error occurred in the 3rd layer.
Caused by error in `FUN()`:
! object 'consumption_bge' not found

it's possible the outputs from refining_module_net.R were updated and therefore the data column needed (consumption_bge) was removed.

measrainsey commented 1 year ago

i tried going through its_fuel_demand_prod.R and couldn't find a solve

i also went through refining_module_net.R to add consumption_bge to the outputs (see commit a477d6a), but that ended up with plots that looked a bit different

measrainsey commented 1 year ago

@traceybit tried using an older date of refining output (see commit 937ec44) to see if that would fix the issue, but it didn't. so it's possible the change to the refining module outputs that caused this could predate 2021 august.

i changed the script to use refining data from 2021 november in commit 7c11282

measrainsey commented 1 year ago

the issue isn't necessarily resolved, but a plot can be created in a 2023 version of the script that was merged with #2 (see commit a477d6a)