Skip to content

Commit 12528aa

Browse files
committed
unused parameter in some tutorials
1 parent 137af09 commit 12528aa

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

exercises/exercise03.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _(AgeGroup, np, osecir):
6060
t0 = 0
6161
tmax = 100
6262
dt = 0.1
63-
contact_frequency = 10
63+
contact_frequency = 5
6464

6565
# Create model with one age group
6666
model = osecir.Model(1)
@@ -83,7 +83,7 @@ def _(AgeGroup, np, osecir):
8383
model.parameters.DeathsPerCritical[group] = 0.3
8484

8585
# Set contact frequency
86-
model.parameters.ContactPatterns.cont_freq_mat[0].baseline = np.ones((1, 1)) * 5
86+
model.parameters.ContactPatterns.cont_freq_mat[0].baseline = np.ones((1, 1)) * contact_frequency
8787
return dt, group, model, t0, tmax, total_population
8888

8989

exercises/exercise05.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def _(AgeGroup, model, np, num_age_groups):
116116
model.parameters.CriticalPerSevere[AgeGroup(2)] = 0.25 * 2
117117

118118
# Set contact frequency
119-
model.parameters.ContactPatterns.cont_freq_mat[0].baseline = np.ones((num_age_groups, num_age_groups)) * 10
119+
model.parameters.ContactPatterns.cont_freq_mat[0].baseline = np.ones((num_age_groups, num_age_groups)) * contact_frequency
120120
return
121121

122122

tutorial03.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _(AgeGroup, np, osecir):
8383
model.parameters.DeathsPerCritical[group] = 0.3
8484

8585
# Set contact frequency
86-
model.parameters.ContactPatterns.cont_freq_mat[0].baseline = np.ones((1, 1)) * 10
86+
model.parameters.ContactPatterns.cont_freq_mat[0].baseline = np.ones((1, 1)) * contact_frequency
8787
return dt, group, model, t0, tmax, total_population
8888

8989

tutorial05.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def _(AgeGroup, model, np, num_age_groups):
116116
model.parameters.CriticalPerSevere[AgeGroup(2)] = 0.25 * 2
117117

118118
# Set contact frequency
119-
model.parameters.ContactPatterns.cont_freq_mat[0].baseline = np.ones((num_age_groups, num_age_groups)) * 10
119+
model.parameters.ContactPatterns.cont_freq_mat[0].baseline = np.ones((num_age_groups, num_age_groups)) * contact_frequency
120120
return
121121

122122

0 commit comments

Comments
 (0)