Skip to content

Commit

Permalink
Merge pull request #604 from bennibbelink/resource-buff
Browse files Browse the repository at this point in the history
  • Loading branch information
gonuke committed May 18, 2024
2 parents 031199f + 72ccbab commit a444242
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ Since last release

**Changed:**

* Rely on `python3` in environment instead of `python` (#602)
* Rely on ``python3`` in environment instead of ``python`` (#602)

**Fixed:**

**Removed:**

* Removed references to deprecated ``ResourceBuff`` class (#604)


v1.6.0
====================
Expand Down
10 changes: 1 addition & 9 deletions src/storage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ void Storage::InitFrom(Storage* m) {
void Storage::InitFrom(cyclus::QueryableBackend* b) {
#pragma cyclus impl initfromdb cycamore::Storage

using cyclus::toolkit::Commodity;
Commodity commod = Commodity(out_commods.front());
cyclus::toolkit::Commodity commod = cyclus::toolkit::Commodity(out_commods.front());
cyclus::toolkit::CommodityProducer::Add(commod);
cyclus::toolkit::CommodityProducer::SetCapacity(commod, throughput);
}
Expand Down Expand Up @@ -241,7 +240,6 @@ void Storage::Tick() {

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void Storage::Tock() {
using cyclus::toolkit::RecordTimeSeries;
LOG(cyclus::LEV_INFO3, "ComCnv") << prototype() << " is tocking {";

BeginProcessing_(); // place unprocessed inventory into processing
Expand Down Expand Up @@ -315,11 +313,6 @@ void Storage::BeginProcessing_() {

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void Storage::ProcessMat_(double cap) {
using cyclus::Material;
using cyclus::ResCast;
using cyclus::toolkit::ResBuf;
using cyclus::toolkit::Manifest;

if (!ready.empty()) {
try {
double max_pop = std::min(cap, ready.quantity());
Expand Down Expand Up @@ -351,7 +344,6 @@ void Storage::ProcessMat_(double cap) {

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void Storage::ReadyMatl_(int time) {
using cyclus::toolkit::ResBuf;
LOG(cyclus::LEV_INFO5, "ComCnv") << "Placing material into ready";

int to_ready = 0;
Expand Down

0 comments on commit a444242

Please sign in to comment.