From: devicerandom Date: Thu, 31 Jul 2008 16:45:20 +0000 (+0000) Subject: (hooke_cli.py) Implemented info command X-Git-Tag: 0.9.0~80 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ff0bbbb9388787c9a2ed07bdab3f5e8098697a80;p=hooke.git (hooke_cli.py) Implemented info command --- diff --git a/hooke_cli.py b/hooke_cli.py index 460eccd..fb3e32e 100755 --- a/hooke_cli.py +++ b/hooke_cli.py @@ -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 diff --git a/libhookecurve.py b/libhookecurve.py index 099b19f..7683cf1 100755 --- a/libhookecurve.py +++ b/libhookecurve.py @@ -33,6 +33,7 @@ class Driver: ''' def __init__(self): self.experiment='' + self.filetype='' def is_me(self): '''