X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=hooke%2Fdriver%2Ftutorial.py;h=adcaf2cec1529d7b87d6f3d1cda3338325c19e47;hb=216312e7d0bebbc294315d47e7266c8f25acaaba;hp=d68393ead1cb9a7ded7e06367d13a94637e0cf76;hpb=3f843575bc7652fb42c0a20fa7bd25c9d2221bb0;p=hooke.git diff --git a/hooke/driver/tutorial.py b/hooke/driver/tutorial.py index d68393e..adcaf2c 100644 --- a/hooke/driver/tutorial.py +++ b/hooke/driver/tutorial.py @@ -93,7 +93,7 @@ class TutorialDriver (Driver): help='Set the units used for the x data.'), ] - def is_me(self): + def is_me(self, path): """YOU MUST OVERRIDE Driver.is_me. RETURNS: Boolean (`True` or `False`) @@ -106,7 +106,7 @@ class TutorialDriver (Driver): automatically. """ - f = open(self.filename, 'r') + f = open(path, 'r') header = f.readline() # we only need the first line f.close() @@ -132,5 +132,5 @@ class TutorialDriver (Driver): f.close() # remember to close the file data = curve.Data() - info = {'filetype':'tutorial', 'experiment':'generic'} + info = {'filetype':'tutorial', 'experiment':experiment.Experiment} return (data, info)