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

MAgPIE coupling: code cleaning #1351

Merged
merged 2 commits into from
Jul 11, 2023
Merged

Conversation

dklein-pik
Copy link
Contributor

Purpose of this PR

Delete old code

Type of change

(Make sure to delete from the Type-of-change list the items not relevant to your PR)

  • Bug fix
  • Refactoring
  • New feature
  • Minor change (default scenarios show only small differences)
  • Fundamental change
  • This change requires a documentation update

Checklist:

  • My code follows the coding etiquette
  • I performed a self-review of my own code
  • I explained my changes within the PR, particularly in hard-to-understand areas
  • I checked that the in-code documentation is up-to-date
  • I adjusted the reporting in remind2 where it was needed
  • I adjusted forbiddenColumnNames in readCheckScenarioConfig.R in case the PR leads to deprecated switches
  • All automated model tests pass (FAIL 0 in the output of make test)

Further information (optional):

  • Test runs are here:
  • Comparison of results (what changes by this PR?):

Copy link
Contributor

@orichters orichters left a comment

Choose a reason for hiding this comment

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

Assuming make test-coupled works, I'm absolutely fine with deleting this old stuff.

I looked at the code changes and they look convincing.

Thanks!

@@ -68,9 +27,6 @@ start_coupled <- function(path_remind, path_magpie, cfg_rem, cfg_mag, runname, m
return(out)
}

# start coupling in debug mode (just create empty results folders and copy dummy reports without running the models)
debug <- FALSE
Copy link
Contributor

Choose a reason for hiding this comment

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

So the mode was simply activated by setting debug = TRUE here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. But the new opportunity witht the empty models is much more useful.

@dklein-pik
Copy link
Contributor Author

Assuming make test-coupled works, I'm absolutely fine with deleting this old stuff.

I looked at the code changes and they look convincing.

Thanks!

Yes, make test-coupled works.

@dklein-pik dklein-pik merged commit 5eeea52 into remindmodel:develop Jul 11, 2023
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.

2 participants