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

throw if invalid package id given #1699

Merged
merged 2 commits into from Mar 14, 2024
Merged

Conversation

nuclearkatie
Copy link
Contributor

Built errors into GetPackageByName but forgot to do so for GetPackageById. Throws for both id < 0 and unable to find matching id

Closes #1697

Copy link

Downstream Build Status Report

Build FROM cyclus_20.04_apt/cyclus
  • Cycamore: Success
  • Cymetric: Success
Build FROM cyclus_20.04_conda/cyclus
  • Cycamore: Success
  • Cymetric: Success
Build FROM cyclus_22.04_apt/cyclus
  • Cycamore: Success
  • Cymetric: Success
Build FROM cyclus_22.04_conda/cyclus
  • Cycamore: Success
  • Cymetric: Success

@coveralls
Copy link
Collaborator

coveralls commented Mar 14, 2024

Pull Request Test Coverage Report for Build 8273303447

Details

  • 0 of 3 (0.0%) changed or added relevant lines in 1 file are covered.
  • 5 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.007%) to 32.582%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/context.cc 0 3 0.0%
Files with Coverage Reduction New Missed Lines %
build/cyclus/py_lib_.cxx 1 34.76%
build/cyclus/py_agents_.cxx 4 33.95%
Totals Coverage Status
Change from base Build 8273174176: -0.007%
Covered Lines: 52969
Relevant Lines: 128979

💛 - Coveralls

Copy link
Contributor

@bennibbelink bennibbelink left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @nuclearkatie!

@nuclearkatie nuclearkatie marked this pull request as ready for review March 14, 2024 00:42
Copy link
Member

@gonuke gonuke left a comment

Choose a reason for hiding this comment

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

Looks like this does the trick. Thanks for the quick fix @nuclearkatie

@gonuke gonuke merged commit 26f05e6 into cyclus:main Mar 14, 2024
10 checks 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.

Context::GetPackageById compilation warning
4 participants