Skip to content

Commit

Permalink
Apply suggestions from code review - use boolean true
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Wilson <[email protected]>
  • Loading branch information
nuclearkatie and gonuke authored Jul 31, 2024
1 parent d5cc4dc commit 65d04c7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/reactor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}


Expand Down
2 changes: 1 addition & 1 deletion src/reactor.h
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ class Reactor : public cyclus::Facility,
std::vector<double> 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 " \
Expand Down
2 changes: 1 addition & 1 deletion src/sink.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Sink::Sink(cyclus::Context* ctx)
capacity(std::numeric_limits<double>::max()),
latitude(0.0),
longitude(0.0),
keep_packaging(1),
keep_packaging(true),
coordinates(latitude, longitude) {
SetMaxInventorySize(std::numeric_limits<double>::max());}

Expand Down
2 changes: 1 addition & 1 deletion src/sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 " \
Expand Down

0 comments on commit 65d04c7

Please sign in to comment.