From 65d04c7149e0fe7ec371ab6ee838157a4bb36dae Mon Sep 17 00:00:00 2001 From: Katie Mummah Date: Wed, 31 Jul 2024 14:55:05 -0600 Subject: [PATCH] Apply suggestions from code review - use boolean true Co-authored-by: Paul Wilson --- src/reactor.cc | 2 +- src/reactor.h | 2 +- src/sink.cc | 2 +- src/sink.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/reactor.cc b/src/reactor.cc index 0e4dca51c..30e7857eb 100644 --- a/src/reactor.cc +++ b/src/reactor.cc @@ -23,7 +23,7 @@ Reactor::Reactor(cyclus::Context* ctx) discharged(false), latitude(0.0), longitude(0.0), - keep_packaging(1), + keep_packaging(true), coordinates(latitude, longitude) {} diff --git a/src/reactor.h b/src/reactor.h index d6c1cc65d..7767403fb 100644 --- a/src/reactor.h +++ b/src/reactor.h @@ -408,7 +408,7 @@ class Reactor : public cyclus::Facility, std::vector pref_change_values; #pragma cyclus var { \ - "default": 1, \ + "default": true, \ "tooltip": "Whether to persist packaging throughout the reactor", \ "doc": "Boolean value about whether to keep packaging. If true, " \ "packaging will not be stripped upon acceptance into the " \ diff --git a/src/sink.cc b/src/sink.cc index 98d2b2189..b2b564438 100644 --- a/src/sink.cc +++ b/src/sink.cc @@ -14,7 +14,7 @@ Sink::Sink(cyclus::Context* ctx) capacity(std::numeric_limits::max()), latitude(0.0), longitude(0.0), - keep_packaging(1), + keep_packaging(true), coordinates(latitude, longitude) { SetMaxInventorySize(std::numeric_limits::max());} diff --git a/src/sink.h b/src/sink.h index ea1ae1732..c95daa1f7 100644 --- a/src/sink.h +++ b/src/sink.h @@ -256,7 +256,7 @@ class Sink int random_frequency_max; #pragma cyclus var { \ - "default": 1, \ + "default": true, \ "tooltip": "Whether to persist packaging in the sink.", \ "doc": "Boolean value about whether to keep packaging. If true, " \ "packaging will not be stripped upon acceptance into the " \