review.py: fixed crash when a file is not valid
[hooke.git] / libhookecurve.py
index 099b19ffbe33cd033b954f284f026a8483eab438..37cd1b11bba4213629b0a9fd9b89b21c3f40ad47 100755 (executable)
@@ -33,6 +33,7 @@ class Driver:
     '''
     def __init__(self):
         self.experiment=''
+        self.filetype=''
     
     def is_me(self):
         '''
@@ -102,10 +103,15 @@ class PlotObject:
         '''
         styles: defines what is the style of the current plots. If undefined or None, it is line plot.
         If an element of the list is 'scatter', the corresponding dataset
-       is drawn with scattered points and not a continuous line.
+        is drawn with scattered points and not a continuous line.
         '''
         self.styles=[]
         
+        '''
+        colors: define what is the colour of the current plots
+        '''
+        self.colors=[]
+        
     def add_set(self,x,y):
         '''
         Adds an x,y data set to the vectors.