From 7076553327af375b3ff7dd1dae581b0061d0373e Mon Sep 17 00:00:00 2001 From: Kartheyan Date: Fri, 19 Apr 2024 11:48:55 +0100 Subject: [PATCH] Fix page links --- docs-source/source/usage/outcomevisualisation.rst | 6 +++--- .../templates/greedy_round_analysis_template.html | 5 +---- .../templates/mes_page_summary_template.html | 4 ++-- .../templates/mes_round_analysis_template.html | 6 +++--- pabutools/visualisation/visualisation.py | 9 +++++---- 5 files changed, 14 insertions(+), 16 deletions(-) diff --git a/docs-source/source/usage/outcomevisualisation.rst b/docs-source/source/usage/outcomevisualisation.rst index a5f3eb73..dbf319cc 100644 --- a/docs-source/source/usage/outcomevisualisation.rst +++ b/docs-source/source/usage/outcomevisualisation.rst @@ -32,10 +32,10 @@ generate the visualisation. # The visualiser takes the profile, instance, and outcome as arguments visualiser = GreedyWelfareVisualiser(profile, instance, outcome) - # output_filename is option and defaults to greedy_explanation.html - visualiser.render("./{path_to_output_file}/", output_filename="{output_filename}") + # name is optional and defaults to the empty string + visualiser.render("./{path_to_output_file}/", name="{name}") -The visualisation will be saved in the specified path as a standalone HTML file called round_analysis.html. +The visualisation will be saved in the specified path as a standalone HTML file called "{name}_round_analysis.html". Note that the visualisation is only available for additive utility functions. diff --git a/pabutools/visualisation/templates/greedy_round_analysis_template.html b/pabutools/visualisation/templates/greedy_round_analysis_template.html index 9c99f688..8feeb118 100644 --- a/pabutools/visualisation/templates/greedy_round_analysis_template.html +++ b/pabutools/visualisation/templates/greedy_round_analysis_template.html @@ -152,15 +152,12 @@