diff --git a/content.yml b/content.yml index 9cc166e..eed0a42 100644 --- a/content.yml +++ b/content.yml @@ -254,6 +254,23 @@ models: - [ 25000.0, 1033.0117495994948 ] +# The grouped barchart displayed on the home page. +laws_plot: + distances: + - 200.0 + - 350.0 + - 500.0 + - 1000.0 + - 1500.0 + - 2500.0 + - 3000.0 + - 4500.0 + - 5000.0 + - 8000.0 + - 10000.0 + - 12000.0 + + # The content is Markdown. HTML is also allowed. # If you also want Markdown in the titles, just ask. home: @@ -275,7 +292,6 @@ home: [didier.barret@gmail.com](mailto:didier.barret@gmail.com) - sections: # Add as many sections as you want. # Three blocks per section ; if you want another amount, it can be done, please ask. diff --git a/flaskr/controllers/main_controller.py b/flaskr/controllers/main_controller.py index 7929a22..b8e7ce0 100644 --- a/flaskr/controllers/main_controller.py +++ b/flaskr/controllers/main_controller.py @@ -471,10 +471,7 @@ def consult_estimation(public_id, extension): @main.route("/scaling_laws.csv") def get_scaling_laws_csv(): - distances = [ - 500., 1000., 1500., 2500., 3000., 4500., - 5000., 8000., 10000., 12000., - ] + distances = content.laws_plot.distances models = get_emission_models() si = StringIO() -- libgit2 0.21.2