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 |