diff numerics/manipulate.py @ 125:d255058333b2

putzing
author Jeff Hammel <k0scist@gmail.com>
date Mon, 16 Mar 2015 19:31:49 -0700
parents c4d26ef63d8e
children 12649a88545c
line wrap: on
line diff
--- a/numerics/manipulate.py	Mon Mar 16 19:17:46 2015 -0700
+++ b/numerics/manipulate.py	Mon Mar 16 19:31:49 2015 -0700
@@ -14,7 +14,7 @@
 from .read import CSVParser
 
 # module globals
-__all__ = ['ManipulationParser', 'main']
+__all__ = ['ManipulationParser', 'FloatParser', 'main']
 
 
 class ManipulationParser(CSVParser):
@@ -35,6 +35,11 @@
         return transpose(self.typed_data())
 
 
+class FloatParser(ManipulationParser):
+    """manipulation parser convenience just for floats"""
+    types = (float,)
+
+
 def main(args=sys.argv[1:]):
     """CLI"""