changeset 58:537fba7c9def

stubbing
author Jeff Hammel <k0scist@gmail.com>
date Tue, 20 Jan 2015 16:44:56 -0800
parents f16d5f013739
children 3781174542bb
files numerics/convert.py numerics/manipulate.py
diffstat 2 files changed, 1 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/numerics/convert.py	Tue Jan 20 16:32:16 2015 -0800
+++ b/numerics/convert.py	Tue Jan 20 16:44:56 2015 -0800
@@ -43,7 +43,7 @@
 
     raise NotImplementedError('TODO') # -> record TODO items
 
-def cast_column(values, to=default_cast):
+def cast_columns(values, to=default_cast):
     """
     cast a column of data
     """
--- a/numerics/manipulate.py	Tue Jan 20 16:32:16 2015 -0800
+++ b/numerics/manipulate.py	Tue Jan 20 16:44:56 2015 -0800
@@ -16,16 +16,6 @@
 here = os.path.dirname(os.path.realpath(__file__))
 string = (str, unicode)
 
-def ensure_dir(directory):
-    """ensure a directory exists"""
-    if os.path.exists(directory):
-        if not os.path.isdir(directory):
-            raise OSError("Not a directory: '{}'".format(directory))
-        return directory
-    os.makedirs(directory)
-    return directory
-
-
 class Parser(argparse.ArgumentParser):
     """CLI option parser"""
     def __init__(self, **kwargs):