Skip to content

Commit 442658a

Browse files
black formatting (#1921)
Co-authored-by: apdavison <apdavison@users.noreply.github.com>
1 parent 40d2392 commit 442658a

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

‎neo/rawio/neuralynxrawio/ncssections.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,7 @@ def _buildNcsSections(ncsMemMap, sampFreq, gapTolerance=0):
232232
all_gap_inds = np.flatnonzero(np.abs(delta - delta_prediction) > strict_tolerance)
233233
gap_sizes_us = (delta - delta_prediction)[all_gap_inds]
234234
ncsSects.detected_gaps = [
235-
(int(record_index + 1), int(gap_size))
236-
for record_index, gap_size in zip(all_gap_inds, gap_sizes_us)
235+
(int(record_index + 1), int(gap_size)) for record_index, gap_size in zip(all_gap_inds, gap_sizes_us)
237236
]
238237

239238
# Use user-provided tolerance for actual segmentation

‎neo/rawio/neuralynxrawio/neuralynxrawio.py‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -932,8 +932,7 @@ def _format_gap_report(self, detected_gaps, sampling_frequency, filename):
932932
"""
933933
gap_durations_ms = [abs(gap_size) / 1000.0 for _, gap_size in detected_gaps]
934934
gap_positions_seconds = [
935-
record_index * NcsSection._RECORD_SIZE / sampling_frequency
936-
for record_index, _ in detected_gaps
935+
record_index * NcsSection._RECORD_SIZE / sampling_frequency for record_index, _ in detected_gaps
937936
]
938937

939938
gap_detail_lines = [
@@ -1033,9 +1032,7 @@ def scan_stream_ncs_files(self, ncs_filenames):
10331032

10341033
verify_sec_struct = NcsSectionsFactory._verifySectionsStructure
10351034
if not chanSectMap or (not verify_sec_struct(data, chan_ncs_sections)):
1036-
chan_ncs_sections = NcsSectionsFactory.build_for_ncs_file(
1037-
data, nlxHeader, **factory_kwargs
1038-
)
1035+
chan_ncs_sections = NcsSectionsFactory.build_for_ncs_file(data, nlxHeader, **factory_kwargs)
10391036

10401037
# Check for gaps and handle according to gap_tolerance_ms
10411038
if not self._use_legacy_gap_mode and chan_ncs_sections.detected_gaps:

0 commit comments

Comments
 (0)