From f004d18c475f87304fb8ef8f526e546e8df9c4db Mon Sep 17 00:00:00 2001 From: Laurent El Shafey <Laurent.El-Shafey@idiap.ch> Date: Tue, 28 May 2013 17:02:57 +0200 Subject: [PATCH] Polishing (minor docstring/documentation fixes) --- README.rst | 6 ++++-- buildout.cfg | 2 -- setup.py | 2 +- xbob/db/mnist/driver.py | 2 +- xbob/db/mnist/test.py | 1 - 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.rst b/README.rst index 835b51c..9915889 100644 --- a/README.rst +++ b/README.rst @@ -95,12 +95,14 @@ In this case, this should return two NumPy arrays: If you don't have the data installed on your machine, you can also use the following -set of command that will: +set of commands that will: 1. first look for the database in the xbob/db/mnist/ subdirectory and use it if is available 2. or automatically download it from Yann Lecun's website into a temporary folder, that will -be erased when the destructor of the xbob.db.mnist database is called:: +be erased when the destructor of the xbob.db.mnist database is called. + +:: >>> import xbob.db.mnist >>> db = xbob.db.mnist.Database() # Check for the data files locally, and download them if required diff --git a/buildout.cfg b/buildout.cfg index 2fb310b..537a3f4 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -6,8 +6,6 @@ parts = scripts develop = . eggs = xbob.db.mnist -newest = false [scripts] recipe = xbob.buildout:scripts -dependent-scripts = true diff --git a/setup.py b/setup.py index d3136c2..fd60afa 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ from setuptools import setup, find_packages setup( name='xbob.db.mnist', - version='1.0.0g', + version='1.0.0h', description='MNIST Database Access API for Bob', url='http://github.com/bioidiap/xbob.db.mnist', license='GPLv3', diff --git a/xbob/db/mnist/driver.py b/xbob/db/mnist/driver.py index a6833e8..91b83e5 100644 --- a/xbob/db/mnist/driver.py +++ b/xbob/db/mnist/driver.py @@ -37,7 +37,7 @@ class Interface(BaseInterface): return () def type(self): - return 'python_integrated' + return 'binary' def add_commands(self, parser): diff --git a/xbob/db/mnist/test.py b/xbob/db/mnist/test.py index 941b6d3..5a82aec 100644 --- a/xbob/db/mnist/test.py +++ b/xbob/db/mnist/test.py @@ -19,7 +19,6 @@ """A few checks at the MNIST database. """ -import os, sys import unittest from . import Database -- GitLab