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

append MAgPIE results in reporting.R, not in start_coupled.R #992

Merged
merged 1 commit into from
Oct 5, 2022

Conversation

orichters
Copy link
Contributor

Purpose of this PR

Type of change

  • Bug fix
  • Refactoring

Checklist:

  • My code follows the coding etiquette
  • I have performed a self-review of my own code
  • Changes are commented, particularly in hard-to-understand areas
  • The model compiles and runs successfully: see /p/tmp/oliverr/remind-smallfix/output/test_* folders with coupled runs, also starting reporting via output.R worked for both coupled and non-coupled run.


message("end generation of EDGE-T reporting")
}

configfile <- file.path(outputdir, "config.Rdata")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize only now that this has the disadvantage of making reporting.R dependent on the existence of the config file. There is, however, no other way, unless we write the path to the magpie report into the gdx, which is a bit too much for now, I think. So, long story short: I'm fine with this solution :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reporting.R depends on config.Rdata anyhow: It calls lucode2::getScenNames() which reads from it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, missed that. Thanks!

@orichters orichters merged commit 601d609 into remindmodel:develop Oct 5, 2022
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.

after rerunning REMIND reporting, MAgPIE results are missing
2 participants