From ff4c4a723122ffba2864ddbde4730cb149a74487 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Wed, 18 Jan 2017 20:58:20 +0100 Subject: [PATCH] python: render the M&P hierarchy in SVG * python/spot/__init__.py (show_mp_hierarchy, mp_hierarchy_svg): New functions. * tests/python/formulas.ipynb: Illustrate show_mp_hierarchy. * python/ajax/spotcgi.in: Use mp_hierarchy_svg. * python/ajax/css/trans.css: Adjust for possible overflows. * NEWS: Mention this new feature. --- NEWS | 9 +++++ python/ajax/css/trans.css | 4 +- python/ajax/spotcgi.in | 16 +------- python/spot/__init__.py | 68 +++++++++++++++++++++++++++++++- tests/python/formulas.ipynb | 77 ++++++++++++++++++++++++++++++++++++- 5 files changed, 156 insertions(+), 18 deletions(-) diff --git a/NEWS b/NEWS index 3d612f917..9e112080a 100644 --- a/NEWS +++ b/NEWS @@ -144,6 +144,15 @@ New in spot 2.2.2.dev (Not yet released) * The new function mp_class(f) returns the class of the formula f in the temporal hierarchy of Manna & Pnueli. +Python: + + * spot.show_mp_hierarchy() can be used to display the membership of + a formula to the Manna & Pnueli hierarchy, in notebooks. An + example is in https://spot.lrde.epita.fr/ipynb/formulas.html + + * The on-line translator will now display the temporal hierarchy + in the "Formula > property information" output. + Bugs fixed: * The minimize_wdba() function was not correctly minimizing automata diff --git a/python/ajax/css/trans.css b/python/ajax/css/trans.css index d336a77a1..1a980dddb 100644 --- a/python/ajax/css/trans.css +++ b/python/ajax/css/trans.css @@ -42,7 +42,9 @@ div.ltl2tgba { top:84px; z-index:1; } - +#results-body { + overflow: auto; +} .ltldoc { text-align: right; } diff --git a/python/ajax/spotcgi.in b/python/ajax/spotcgi.in index d0f940208..aa03ec7d6 100755 --- a/python/ajax/spotcgi.in +++ b/python/ajax/spotcgi.in @@ -502,23 +502,11 @@ if output_type == 'f': else: s = str(f) unbufprint('Properties for ' + format_formula(f, 'span') + '