Skip to content

Commit 6663c2c

Browse files
committed
CHG: Incorporate feedback
1 parent ca54a43 commit 6663c2c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

tutorial02.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def _(mo):
9898
@app.cell
9999
def _(model):
100100
constraints_violated = model.check_constraints()
101+
print(constraints_violated)
101102
return
102103

103104

@@ -236,7 +237,7 @@ def _(compartments, daily_flows, osecir, plot_time, plt):
236237
# Combine legends from both axes
237238
lines_1, labels_1 = ax[1].get_legend_handles_labels()
238239
lines_2, labels_2 = ax2.get_legend_handles_labels()
239-
ax2.legend(lines_1 + lines_2, labels_1 + labels_2, loc='center right')
240+
ax2.legend(lines_1 + lines_2, labels_1 + labels_2, loc='upper right')
240241

241242
plt.tight_layout()
242243
plt.show()

tutorial06.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def _(
440440
run_simulation,
441441
tempfile,
442442
):
443-
abc = pyabc.ABCSMC(run_simulation, prior, distance_function, population_size=1000)
443+
abc = pyabc.ABCSMC(run_simulation, prior, distance_function, population_size=300)
444444
db_path = "sqlite:///" + os.path.join(tempfile.gettempdir(), "tmp.db")
445445
abc.new(db_path, observation_data)
446446
return (abc,)

0 commit comments

Comments
 (0)