licel.py

changeset 31
b243f896e5f4
parent 28
73337ce10473
child 33
2984158468e6
equal deleted inserted replaced
30:28d7b0974fe6 31:b243f896e5f4
182 and the raw_info of the file are checked. 182 and the raw_info of the file are checked.
183 ''' 183 '''
184 184
185 if len(raw_start_in_seconds) == 1: # If only one file imported 185 if len(raw_start_in_seconds) == 1: # If only one file imported
186 duration = self.durations.itervalues().next() # Get the first (and only) raw_info 186 duration = self.durations.itervalues().next() # Get the first (and only) raw_info
187 duration_sec = duration.seconds 187 duration_sec = duration
188 else: 188 else:
189 duration_sec = np.diff(raw_start_in_seconds)[0] 189 duration_sec = np.diff(raw_start_in_seconds)[0]
190 190
191 return duration_sec 191 return duration_sec
192 192

mercurial