Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add |+| based on AMT mif #460

Merged
merged 2 commits into from
Feb 27, 2025
Merged

add |+| based on AMT mif #460

merged 2 commits into from
Feb 27, 2025

Conversation

orichters
Copy link
Contributor

Purpose of this PR

  • to have consistent use of |+| notation across REMIND mif and piamInterfaces
library(tidyverse)
devtools::load_all()
vars <- levels(quitte::as.quitte("/p/projects/remind/modeltests/remind/output/SSP2-NPi-AMT_2025-02-21_22.17.03/REMIND_generic_SSP2-NPi-AMT.mif")$variable)
for (m in names(mappingNames())) {
  d <- getMapping(m)
  for (v in vars) {
    d$piam_variable[deletePlus(d$piam_variable) == deletePlus(v)] <- v
  }
  writeMapping(d, paste0("inst/mappings/mapping_", m, ".csv"))
}

@orichters orichters merged commit d7f684f into pik-piam:master Feb 27, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant