{ "info": { "author": "Unto Kuuranne", "author_email": "unto.kuuranne@aalto.fi", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3" ], "description": "\r\nppas - PostProcess Answer Sets\r\n==============================\r\n\r\nThis program accepts clingo 4.x and clasp 3.x log files and an ASP script to\r\npostprocess the answer sets the log contains.\r\nThe result is a rewritten log file.\r\n\r\nEach answer is assigned a sequence number starting from 1 and it's atoms are\r\nwrapped in the special predicate _as(Term, SequenceNum). The answer sets are\r\nreplaced with atoms read from a special predicate _pp(Term, SequenceNum).\r\n\r\nE.g. adding the atom \"a.\" to the first answer set in the log could be done with\r\nthe following ASP script::\r\n\r\n\t% Add \"a.\" to first answer set / model\r\n\t_pp(a, 1).\r\n\t% Pass everything else through\r\n\t_pp(Term, SeqNum) :- _as(Term, SeqNum).\r\n\r\nNote that the sequence number does not necessarily correspond to in the\r\n\"Answer: \" line in the input log file; for example when multiple solve\r\ncalls were used.\r\n\r\nInstalling\r\n----------\r\n\r\nRun::\r\n\r\n\tpip install --user ppas\r\n\r\n\r\nUsage\r\n-----\r\n::\r\n\r\n ppas