Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ogcore/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ def compute_default_params(self):
param_in, dims=(self.T + self.S,), item=item
)
setattr(self, item, param_out)
# retirement_age is a whole number of years (bounded well under the
# int16 range), so store it as int16 rather than float64 to reduce
# the memory footprint of the parameters object (see issue #1080).
# Rounding first keeps behavior identical to how it is already
# consumed in `retire`.
self.retirement_age = np.round(self.retirement_age).astype(np.int16)
# Deal with parameters that vary across industry and over time
tp_param_list2 = [
"Z",
Expand Down
Loading