Add wtk driver for W. Trevor King's velocity clamp data format.
[hooke.git] / hooke / driver / tutorial.py
index d68393ead1cb9a7ded7e06367d13a94637e0cf76..adcaf2cec1529d7b87d6f3d1cda3338325c19e47 100644 (file)
@@ -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)