Skip to content

Commit eb6253f

Browse files
committed
education small fixes
1 parent 5ea0548 commit eb6253f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demos/models/education.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def education(
8181
ged_or_hs_index = persons["edu"].isin([16, 17])
8282
persons.local.loc[stayed_index & ged_or_hs_index, "edu"] = 18
8383

84-
### Students in grade 12 move to either 15 or 16 based on weights
84+
### Students in grade 12 move to either 16 or 17 based on weights
8585
### Proportion of no diploma to GED students is roughly maintained
8686
twelveth_grade_index = persons["edu"] == 15
8787
twelveth_grade_transition = np.random.choice(
@@ -108,7 +108,7 @@ def education(
108108
log_execution_time(start_time, orca.get_injectable("year"), "education")
109109

110110

111-
@orca.injectable(name="edu_highschool_proportion")
111+
@orca.injectable(name="edu_highschool_proportion", cache_scope="forever", cache=True)
112112
def edu_highschool_proportion(data="persons.edu"):
113113
"""
114114
Calculate the proportion of students in 11th and 12th grade.

0 commit comments

Comments
 (0)