catalystneuro / roiextractors

Python-based module for extracting from, converting between, and handling optical imaging data from several file formats. Inspired by SpikeInterface.
https://roiextractors.readthedocs.io/en/latest/index.html
BSD 3-Clause "New" or "Revised" License
12 stars 7 forks source link

flake8 #77

Closed bendichter closed 3 years ago

bendichter commented 3 years ago

@Saksham20 can you look into these flake8 flags?

./docs/source/conf.py:65:31: W292 no newline at end of file
./tests/test_conversions.py:31:9: F841 local variable 'resp' is assigned to but never used
./tests/test_conversions.py:77:9: F841 local variable 'seg_ex_rt' is assigned to but never used
./tests/test_conversions.py:116:9: F841 local variable 'img_ex_rt' is assigned to but never used
./roiextractors/__init__.py:1:1: F401 '.example_datasets' imported but unused
./roiextractors/__init__.py:2:1: F401 '.extraction_tools.show_video' imported but unused
./roiextractors/__init__.py:3:1: F403 'from .extractorlist import *' used; unable to detect undefined names
./roiextractors/__init__.py:3:1: F401 '.extractorlist.*' imported but unused
./roiextractors/__init__.py:4:1: F401 '.imagingextractor.ImagingExtractor' imported but unused
./roiextractors/__init__.py:5:1: F401 '.memmapextractors.MemmapImagingExtractor' imported but unused
./roiextractors/__init__.py:6:1: F401 '.segmentationextractor.SegmentationExtractor' imported but unused
./roiextractors/__init__.py:7:1: F401 '.version.version as __version__' imported but unused
./roiextractors/testing.py:138:1: E302 expected 2 blank lines, found 1
./roiextractors/testing.py:155:62: E231 missing whitespace after ','
./roiextractors/testing.py:158:67: W292 no newline at end of file
./roiextractors/segmentationextractor.py:2:1: F401 'copy.deepcopy' imported but unused
./roiextractors/extractorlist.py:32:29: E128 continuation line under-indented for visual indent
./roiextractors/extractorlist.py:35:29: E127 continuation line over-indented for visual indent
./roiextractors/extractorlist.py:35:57: W292 no newline at end of file
./roiextractors/extraction_tools.py:8:1: F401 'os.path.abspath' imported but unused
./roiextractors/extraction_tools.py:8:1: F401 'os.path.relpath' imported but unused
./roiextractors/extraction_tools.py:70:1: W293 blank line contains whitespace
./roiextractors/extraction_tools.py:77:1: W293 blank line contains whitespace
./roiextractors/extraction_tools.py:147:1: C901 'write_to_h5_dataset_format' is too complex (15)
./roiextractors/extraction_tools.py:216:26: E228 missing whitespace around modulo operator
./roiextractors/extraction_tools.py:283:1: W391 blank line at end of file
./roiextractors/extractors/caiman/caimansegmentationextractor.py:109:74: E127 continuation line over-indented for visual indent
./roiextractors/extractors/caiman/__init__.py:1:1: F403 'from .caimansegmentationextractor import *' used; unable to detect undefined names
./roiextractors/extractors/caiman/__init__.py:1:1: F401 '.caimansegmentationextractor.*' imported but unused
./roiextractors/extractors/caiman/__init__.py:1:43: W292 no newline at end of file
./roiextractors/extractors/simaextractor/__init__.py:1:1: F401 '.simasegmentationextractor.SimaSegmentationExtractor' imported but unused
./roiextractors/extractors/simaextractor/__init__.py:1:65: W292 no newline at end of file
./roiextractors/extractors/simaextractor/simasegmentationextractor.py:15:1: E722 do not use bare 'except'
./roiextractors/extractors/simaextractor/simasegmentationextractor.py:29:128: E501 line too long (138 > 127 characters)
./roiextractors/extractors/tiffimagingextractor/tiffimagingextractor.py:13:1: E722 do not use bare 'except'
./roiextractors/extractors/tiffimagingextractor/tiffimagingextractor.py:22:128: E501 line too long (141 > 127 characters)
./roiextractors/extractors/tiffimagingextractor/__init__.py:1:1: F401 '.tiffimagingextractor.TiffImagingExtractor' imported but unused
./roiextractors/extractors/nwbextractors/nwbextractors.py:294:13: F841 local variable 'acquisition_name' is assigned to but never used
./roiextractors/extractors/nwbextractors/nwbextractors.py:466:5: C901 'NwbSegmentationExtractor.__init__' is too complex (20)
./roiextractors/extractors/nwbextractors/nwbextractors.py:513:128: E501 line too long (138 > 127 characters)
./roiextractors/extractors/nwbextractors/nwbextractors.py:615:5: C901 'NwbSegmentationExtractor.write_segmentation' is too complex (29)
./roiextractors/extractors/nwbextractors/nwbextractors.py:674:128: E501 line too long (130 > 127 characters)
./roiextractors/extractors/nwbextractors/nwbextractors.py:713:17: F841 local variable 'num_rois' is assigned to but never used
./roiextractors/extractors/nwbextractors/nwbextractors.py:740:128: E501 line too long (133 > 127 characters)
./roiextractors/extractors/nwbextractors/nwbextractors.py:743:128: E501 line too long (132 > 127 characters)
./roiextractors/extractors/nwbextractors/__init__.py:1:1: F401 '.nwbextractors.NwbImagingExtractor' imported but unused
./roiextractors/extractors/nwbextractors/__init__.py:1:1: F401 '.nwbextractors.NwbSegmentationExtractor' imported but unused
./roiextractors/extractors/hdf5imagingextractor/__init__.py:1:1: F401 '.hdf5imagingextractor.Hdf5ImagingExtractor' imported but unused
./roiextractors/extractors/schnitzerextractor/extractsegmentationextractor.py:102:43: E231 missing whitespace after ','
./roiextractors/extractors/schnitzerextractor/extractsegmentationextractor.py:110:63: E127 continuation line over-indented for visual indent
./roiextractors/extractors/schnitzerextractor/__init__.py:1:1: F401 '.cnmfesegmentationextractor.CnmfeSegmentationExtractor' imported but unused
./roiextractors/extractors/schnitzerextractor/__init__.py:2:1: F401 '.extractsegmentationextractor.ExtractSegmentationExtractor' imported but unused
./roiextractors/extractors/schnitzerextractor/cnmfesegmentationextractor.py:77:5: C901 'CnmfeSegmentationExtractor.write_segmentation' is too complex (11)
./roiextractors/extractors/schnitzerextractor/cnmfesegmentationextractor.py:77:47: E231 missing whitespace after ':'
./roiextractors/extractors/schnitzerextractor/cnmfesegmentationextractor.py:105:113: E225 missing whitespace around operator
./roiextractors/extractors/schnitzerextractor/cnmfesegmentationextractor.py:106:63: E127 continuation line over-indented for visual indent
./roiextractors/extractors/schnitzerextractor/cnmfesegmentationextractor.py:107:43: E231 missing whitespace after ','
./roiextractors/extractors/schnitzerextractor/cnmfesegmentationextractor.py:108:128: E501 line too long (128 > 127 characters)
./roiextractors/extractors/suite2p/__init__.py:1:1: F403 'from .suite2psegmentationextractor import *' used; unable to detect undefined names
./roiextractors/extractors/suite2p/__init__.py:1:1: F401 '.suite2psegmentationextractor.*' imported but unused
./roiextractors/extractors/suite2p/__init__.py:1:44: W292 no newline at end of file
./roiextractors/extractors/suite2p/suite2psegmentationextractor.py:44:64: E231 missing whitespace after ','
./roiextractors/extractors/suite2p/suite2psegmentationextractor.py:64:17: E128 continuation line under-indented for visual indent
./roiextractors/extractors/suite2p/suite2psegmentationextractor.py:74:5: C901 'Suite2pSegmentationExtractor.write_segmentation' is too complex (12)
./roiextractors/extractors/sbximagingextractor/sbximagingextractor.py:3:1: F401 '...extraction_tools.FloatType' imported but unused
./roiextractors/extractors/sbximagingextractor/sbximagingextractor.py:44:36: E231 missing whitespace after ','
./roiextractors/extractors/sbximagingextractor/sbximagingextractor.py:94:66: E225 missing whitespace around operator
./roiextractors/extractors/sbximagingextractor/sbximagingextractor.py:95:28: E127 continuation line over-indented for visual indent
./roiextractors/extractors/sbximagingextractor/sbximagingextractor.py:147:1: W391 blank line at end of file
./roiextractors/extractors/sbximagingextractor/__init__.py:1:1: F401 '.sbximagingextractor.SbxImagingExtractor' imported but unused
./roiextractors/extractors/sbximagingextractor/__init__.py:1:53: W292 no newline at end of file
./roiextractors/extractors/numpyextractors/__init__.py:1:1: F401 '.numpyextractors.NumpyImagingExtractor' imported but unused
./roiextractors/extractors/numpyextractors/__init__.py:1:1: F401 '.numpyextractors.NumpySegmentationExtractor' imported but unused
./roiextractors/extractors/numpyextractors/numpyextractors.py:112:5: C901 'NumpySegmentationExtractor.__init__' is too complex (13)
./roiextractors/example_datasets/toy_example.py:11:1: C901 '_generate_rois' is too complex (11)
./roiextractors/example_datasets/__init__.py:1:1: F401 '.toy_example.toy_example' imported but unused
./roiextractors/example_datasets/__init__.py:1:37: W292 no newline at end of file
7     C901 '_generate_rois' is too complex (11)
5     E127 continuation line over-indented for visual indent
2     E128 continuation line under-indented for visual indent
2     E225 missing whitespace around operator
1     E228 missing whitespace around modulo operator
6     E231 missing whitespace after ','
1     E302 expected 2 blank lines, found 1
7     E501 line too long (138 > 127 characters)
2     E722 do not use bare 'except'
24    F401 '.example_datasets' imported but unused
3     F403 'from .extractorlist import *' used; unable to detect undefined names
5     F841 local variable 'acquisition_name' is assigned to but never used
8     W292 no newline at end of file
2     W293 blank line contains whitespace
2     W391 blank line at end of file
bendichter commented 3 years ago

we should consider using Black