Skip to content

Commit

Permalink
Fix grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
k1o0 committed Oct 16, 2024
1 parent a270902 commit 02178fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ibllib/qc/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,9 +579,9 @@ def check_dropped_frames(self, threshold=.1):
size_diff = int(self.data['count'].size - self.data['video']['length'])
strict_increase = np.all(np.diff(self.data['count']) > 0)
if not strict_increase:
n_effected = np.sum(np.invert(strict_increase))
n_affected = np.sum(np.invert(strict_increase))
_log.info(f'frame count not strictly increasing: '
f'{n_effected} frames effected ({n_effected / strict_increase.size:.2%})')
f'{n_affected} frames affected ({n_affected / strict_increase.size:.2%})')
return spec.QC.CRITICAL
dropped = np.diff(self.data['count']).astype(int) - 1
pct_dropped = (sum(dropped) / len(dropped) * 100)
Expand Down
2 changes: 1 addition & 1 deletion ibllib/tests/extractors/test_extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ def test_groom_pin_state(self):
gpio['indices'][i + 1] = np.where(ts > rise + pulse_width)[0][0]

gpio_, audio_, ts_ = camera.groom_pin_state(gpio, audio, ts)
self.assertEqual(audio, audio_, 'Audio dict shouldn\'t be effected')
self.assertEqual(audio, audio_, 'Audio dict shouldn\'t be affected')
np.testing.assert_array_almost_equal(ts_[:4], [40., 40.016667, 40.033333, 40.05])

# Broken TTLs + extra TTL
Expand Down

0 comments on commit 02178fe

Please sign in to comment.