(hooke_cli.py) Implemented info command
authordevicerandom <devnull@localhost>
Thu, 31 Jul 2008 16:45:20 +0000 (16:45 +0000)
committerdevicerandom <devnull@localhost>
Thu, 31 Jul 2008 16:45:20 +0000 (16:45 +0000)
hooke_cli.py
libhookecurve.py

index 460eccdd184b77d90377686e55977a180805d87d..fb3e32e418071af6e05a8abc3104a27bdb8116a9 100755 (executable)
@@ -891,6 +891,20 @@ Syntax: current
     def do_current(self,args):
         print self.current.path
         
+    def do_info(self,args):
+        '''
+        INFO
+        ----
+        Returns informations about the current curve.
+        '''
+        print 'Path: ',self.current.path
+        print 'Experiment: ',self.current.curve.experiment
+        print 'Filetype: ',self.current.curve.filetype
+        for plot in self.current.curve.default_plots():
+            for set in plot.vectors:
+                lengths=[len(item) for item in set]
+                print 'Data set size: ',lengths
+        
     def do_version(self,args):
         '''
         VERSION
index 099b19ffbe33cd033b954f284f026a8483eab438..7683cf1c957f2733d0b6781e5814fd8f07bfd760 100755 (executable)
@@ -33,6 +33,7 @@ class Driver:
     '''
     def __init__(self):
         self.experiment=''
+        self.filetype=''
     
     def is_me(self):
         '''