pik-piam / remind2

The remind2 package contains the REMIND-specific routines for data and model output manipulation.
0 stars 40 forks source link

CS2 Industry with Industrial Processes plot broken #527

Closed 0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q closed 7 months ago

0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q commented 7 months ago

3.4.12 Industry with Industrial Processes (page 181) in the compScen pdf.

## Error in mipLineHistorical(., x_hist = dRegiHist, ylab = NULL, scales = scales, : Number of provided colors for historical data (#6) does not match number

https://github.com/pik-piam/remind2/blob/af6b2f59cc143343dd9acd10cdfb8fac8782bc45/inst/markdown/compareScenarios2/cs2_03_emissions.Rmd#L192-L210

I do not have a revision range for this, but it did work on 4 December and did not on 6 December, which should have been before v1.124.0.

Assigning @fbenke-pik in order to not assign no one and have this fall through the cracks.

0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q commented 7 months ago

Similar error on "3.4.8 Electricity and Heat" (page 177)

## Error in mipLineHistorical(., x_hist = dMainHist, ylab = label, scales = scales, : Number of provided colors for historical data (#2) does not match number

Might be related, or just the same root cause.

fbenke-pik commented 7 months ago

Unifying legends fails because the additional calculations in the respective chunks introduce all-NA values for certain reference sources. This crashes in showLinePlots, as it assumes that all NA values have been removed in cs2_main.

fbenke-pik commented 7 months ago

Michaja, please check again when you find time and reopen if the problem persists.