Skip to content

update test() function #5

Open
Open
@arne-cl

Description

@arne-cl

There's an old test function which generates all test queries. It points to a pickle file that doesn't exist anymore.

In [1]: from pypolibox.pypolibox import test

In [2]: test()
---------------------------------------------------------------------------
IOError                                   Traceback (most recent call last)
<ipython-input-2-ea594c21b25d> in <module>()
----> 1 test()

/home/arne/anaconda/lib/python2.7/site-packages/pypolibox-1.0.0-py2.7.egg/pypolibox/pypolibox.pyc in test()
     28     """test and realize all text plans for all test queries"""
     29     import cPickle
---> 30     atp = cPickle.load(open("data/alltextplans.pickle", "r"))
     31     for textplans in atp:
     32         for textplan in textplans.document_plans:

IOError: [Errno 2] No such file or directory: 'data/alltextplans.pickle'

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions