@@ -34,6 +34,7 @@ def extract_trodes_rec_file(data_dir,
3434 parallel_instances = 1 ,
3535 use_day_config = True ,
3636 trodes_version = None ):
37+ # pylint: disable=too-many-branches, too-many-locals, too-many-statements
3738 """Extracting Trodes rec files.
3839
3940 Following the Frank Lab directory structure for raw ephys data, will
@@ -205,11 +206,11 @@ def extract_trodes_rec_file(data_dir,
205206 use_day_config = use_day_config )
206207
207208 if adjust_timestamps_for_mcu_lag :
208- '''' There is some jitter in the arrival times of packets from the MCU (as
209- reflected in the sysclock records in the .rec file. If we assume that
210- the Trodes clock is actually regular, and that any episodes of lag are
211- fairly sporadic, we can recover the correspondence between trodestime
212- and system (wall) time.'''
209+ # There is some jitter in the arrival times of packets from the MCU (as
210+ # reflected in the sysclock records in the .rec file. If we assume that
211+ # the Trodes clock is actually regular, and that any episodes of lag are
212+ # fairly sporadic, we can recover the correspondence between trodestime
213+ # and system (wall) time.
213214 preprocessing_dir = animal_info .get_preprocessing_dir ()
214215 filenames = glob .glob (os .path .join (
215216 preprocessing_dir , '**' , '*.continuoustime.dat' ), recursive = True )
@@ -243,9 +244,7 @@ def convert_binaries_to_hdf5(data_dir, animal, out_dir=None, dates=None,
243244 convert_lfp = True ,
244245 convert_pos = True ,
245246 convert_spike = True ):
246- animal_info = td .TrodesAnimalInfo (
247- data_dir , animal , out_dir = out_dir , dates = dates )
248- """Converting preprocessed binaries into HDF5 files.
247+ '''Converting preprocessed binaries into HDF5 files.
249248
250249 Assume that preprocessing has already been completed using (for example)
251250 extract_trodes_rec_file.
@@ -266,7 +265,9 @@ def convert_binaries_to_hdf5(data_dir, animal, out_dir=None, dates=None,
266265 convert_lfps : bool, optional
267266 convert_dio : bool, optional
268267 convert_mda : bool, optional
269- """
268+ '''
269+ animal_info = td .TrodesAnimalInfo (
270+ data_dir , animal , out_dir = out_dir , dates = dates )
270271
271272 importer = td .TrodesPreprocessingToAnalysis (animal_info )
272273
0 commit comments