From 1c1024c81b988d9f3f4f62193c52544b55d0a277 Mon Sep 17 00:00:00 2001 From: Albert Julius Liu Date: Sun, 12 Nov 2023 23:58:55 -0800 Subject: [PATCH] cortex prime: expand range to 2-25 --- apps/cortex_prime.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/cortex_prime.html b/apps/cortex_prime.html index a3ce4337..5d8e9c13 100644 --- a/apps/cortex_prime.html +++ b/apps/cortex_prime.html @@ -134,7 +134,7 @@

Hitches

var totalChart = new Chart(totalChartContext, { type: 'line', data: { - labels: [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24], + labels: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25], datasets: [ { label: 'Any effect', @@ -437,9 +437,9 @@

Hitches

def total_data(die, selected_dist): if selected_dist == 'pmf': - return pyodide.ffi.to_js([float(x) * 100.0 for x in die.probabilities(range(4, 25))]) + return pyodide.ffi.to_js([float(x) * 100.0 for x in die.probabilities(range(2, 26))]) else: - return pyodide.ffi.to_js([float(x) * 100.0 for x in die.probabilities_ge(range(4, 25))]) + return pyodide.ffi.to_js([float(x) * 100.0 for x in die.probabilities_ge(range(2, 26))]) `); totalChart.options.plugins.title = {