Index
pyAnno is hosted on GitHub at https://github.com/enthought/uchicago-pyanno.
The recommended workflow to extend and improve pyAnno is the following:
Even though the tests are written using unittest, we recommend the use of nosetests to execute the library test suites. From the root directory of the pyanno project, type
$ nosetests -v pyanno/test
Note
The tests that verify some of the models’ functionality (e.g., the estimation of the model parameters), are stochastic. This has the advantage that they test different, general scenarios at each round, but occasionally leads to test failures. If one of the test fails, please run it a second time. If the failures are consistent, please report a bug using the issue tracker.
This is a checklist of things to do when implementing a new model in pyAnno:
To add the model to the UI:
The documentation is based on Sphinx. It can be found in pyanno/docs.
After editing the documentation, you should compile it, revise the result, and publish it online:
Check out the gh-pages branch from the git repository in a new directory, DOCPATH.
Enter the directory pyanno/docs and edit the BUILDDIR variable in the local Makfile to DOCPATH.
Type
$ make html
Make sure the the pyanno package is in the PYTHONPATH, or Sphinx will fail to generate the API documentation.
Enter DOCPATH, check that the documentation has been correctly generated, and push the branch back to GitHub:
$ git add *
$ git commit -m"DOC: describe your changes here"
$ git push origin gh-pages
The new documentation will be published within seconds.
Revise the setup.py file and update the version number
Run the tests and correct any bug
Push to PyPI:
$ python setup.py register bdist_egg bdist_wininst sdist upload