Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Wilson <paul.wilson@wisc.edu>
Signed-off-by: Katie Mummah <katiemummah@gmail.com>
  • Loading branch information
nuclearkatie and gonuke committed Jun 13, 2024
1 parent f2baa74 commit ede829a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/package.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ TransportUnit::Ptr& TransportUnit::unrestricted() {

int TransportUnit::GetTransportUnitFill(int qty) {
if (qty < fill_min_) {
// less than one pkg of material available
// less than one TransportUnit of material available
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion src/package.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace cyclus {

/// Packager is a class that packages materials into discrete items in ways
/// Package is a class that packages materials into discrete items in ways
// that mimic realistic nuclear material handling. Package is a parameter
// of materials and products, with default unpackaged
class Package {
Expand Down
4 changes: 1 addition & 3 deletions src/toolkit/matl_sell_policy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,7 @@ std::set<BidPortfolio<Material>::Ptr> MatlSellPolicy::GetMatlBids(
int shippable_pkgs = transport_unit_->MaxShippablePackages(bids.size());
if (shippable_pkgs < bids.size()) {
// can't ship all bids. Pop the extras.
for (int i=0; i<(bids.size() - shippable_pkgs); i++) {
bids.pop_back();
}
bids.erase(bids.begin() + shippable_pkgs, bids.end())
}

// Peek at resbuf to get current composition
Expand Down

0 comments on commit ede829a

Please sign in to comment.