Skip to content

Commit 369116e

Browse files
committed
tidying
1 parent 392eac4 commit 369116e

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

nutrition/model.py

+1-12
Original file line numberDiff line numberDiff line change
@@ -141,18 +141,7 @@ def _track_rates(self):
141141
self.child_mortrate[self.year] = 1000 * np.sum(self.child_deaths) / np.sum(self.annual_births)
142142
self.pw_mortrate[self.year] = 1000 * np.sum(self.pw_deaths) / np.sum(self.annual_births)
143143

144-
# def _track_economic_loss(self):
145-
# """To calculate the economic cost of children become stunting or wasting for the country.
146-
# Simply, the cost of stunting and cost of wasting have been input over the databook."""
147-
# oldest = self.children.age_groups[-1]
148-
# rate = oldest.ageingRate
149-
# self.stunting_cost[self.year] += oldest.num_stunted() * rate * self.cost_wasting
150-
# self.wasting_cost[self.year] += sum(oldest.num_wasted(cat) for cat in self.ss.wasted_list) * rate * self.cost_stunting
151-
# self.child_death_cost[self.year] = np.sum(self.child_deaths) * self.cost_child_death
152-
# self.pw_death_cost[self.year] = np.sum(self.pw_deaths) * self.cost_pw_death
153-
# self.child_anaemic_cost[self.year] = oldest.num_anaemic() * rate * self.cost_child_anaemic
154-
# self.pw_anaemic_cost[self.year] = self.pw.num_anaemic() * self.cost_pw_anaemic
155-
144+
156145
def _track_economic_loss(self):
157146
bene_age_start = self.econ_inputs[_("Productivity year start")]
158147
bene_age_end = self.econ_inputs[_("Productivity year end")]

0 commit comments

Comments
 (0)