Commit 10497d14 authored by Pauline Pommeret's avatar Pauline Pommeret

Docstrings

parent 051733ee
#!/usr/bin/env python2.7
"""
This program populates a pre-existing database with the results.
Author: Pauline Pommeret <pommeret@crans.org>
Jonas Senizergues <senizergues@crans.org>
Requires:
- :py:mod:`os`
- :py:mod:`argparse`
- :py:mod:`sequence`
- :py:mod:`lib.XylokExceptions`
- :py:mod:`lib.trx`
- :py:mod:`lib.database`
"""
import os
......@@ -68,6 +79,9 @@ A .dat file must me organized this way:
if not ARGS.datadir:
raise EnvironmentError("You have to give a data directory.")
# -*- Populating the database -*- #
# Iterates on every directory in datadir (each directory holds the data for
# sequence)
for directory in os.listdir(ARGS.datadir):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment