Skip to content

Commit

Permalink
Restructuring evaluation tab for visualisation of ASPIC+ ATs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daphne Odekerken committed Apr 22, 2024
1 parent 1b02cf6 commit 2fb1979
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions src/py_arg_visualisation/pages/22_visualise_aspic.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,9 @@ def get_structured_evaluation_specification_div():
{'label': 'Stable', 'value': 'Stable'},
{'label': 'Semi-stable', 'value': 'SemiStable'},
{'label': 'Eager', 'value': 'Eager'},
],
value='Complete', id='structured-evaluation-semantics')),
], value='Complete', id='structured-evaluation-semantics')),
]),

dbc.Row(id='22-aspic-evaluation-semantics'),
dbc.Row([
dbc.Col(html.B('Evaluation strategy')),
dbc.Col(dbc.Select(
Expand All @@ -220,7 +219,7 @@ def get_structured_evaluation_specification_div():
],
value='Credulous', id='structured-evaluation-strategy')),
]),
dbc.Row(id='structured-evaluation')
dbc.Row(id='22-aspic-evaluation-accepted')
]),
])

Expand Down Expand Up @@ -426,7 +425,8 @@ def create_argumentation_theory(


@callback(
Output('structured-evaluation', 'children'),
Output('22-aspic-evaluation-semantics', 'children'),
Output('22-aspic-evaluation-accepted', 'children'),
State('aspic-axioms', 'value'),
State('aspic-ordinary-premises', 'value'),
State('aspic-strict-rules', 'value'),
Expand Down Expand Up @@ -514,10 +514,25 @@ def evaluate_structured_argumentation_framework(
'index': '+'.join(formula_arguments[formula.s1])})
for formula in sorted(accepted_formulas)]

return [html.B('The extension(s):'),
html.Div(extension_buttons),
html.B('The accepted formula(s):'),
html.Div(accepted_formula_buttons)]
semantics_div = html.Div([
html.B('The extension(s):'),
html.Br(),
html.I('Click on the extension buttons to '
'display the corresponding extension '
'in the graph.'),
html.Div(extension_buttons),
html.Br()
])
accepted_div = html.Div([
html.B('The accepted formula(s):'),
html.Br(),
html.I('Click on the accepted formula buttons to '
'display the corresponding argument '
'in the graph.'),
html.Div(accepted_formula_buttons),
])

return semantics_div, accepted_div


@callback(
Expand Down

0 comments on commit 2fb1979

Please sign in to comment.