Skip to content

Commit

Permalink
Move away from git lfs
Browse files Browse the repository at this point in the history
Remove wav files and replace with compressed npz

Apparently github has a monthly bandwidth limit for Git LFS.
That's reasonable and fair.
What I find unreasonable is that the bandwidth usage by
GH Actions workflows is also counted against the monthly
quota:
https://docs.github.com/en/repositories/working-with-files/managing-large-files/about-storage-and-bandwidth-usage#tracking-storage-and-bandwidth-use

After three workflow runs (4 jobs each), this limit was
reached.

Apparently I'm not the first to fall for this:
actions/checkout#165
actions/checkout#834
https://github.com/orgs/community/discussions/26775

To name a few
  • Loading branch information
nocarryr committed Jun 29, 2024
1 parent fc4fd6c commit 17d2e43
Show file tree
Hide file tree
Showing 75 changed files with 11 additions and 215 deletions.
16 changes: 11 additions & 5 deletions tests/compliance_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ class ComplianceSource(NamedTuple):
is_float: bool = False

def generate(self, sample_rate: int) -> FloatArray:
fs, samples = wavfile.read(self.filename)
if self.filename.suffix == '.npz':
with np.load(self.filename) as data:
samples = data['samples']
_fs_arr = data['sample_rate']
fs = _fs_arr[0]
else:
fs, samples = wavfile.read(self.filename)
samples = np.asarray(samples, dtype=np.float64)
assert fs == sample_rate
if self.is_float:
Expand Down Expand Up @@ -326,7 +332,7 @@ class Tech3342Compliance(ComplianceBase):
name='case20',
input=[
ComplianceSource(
filename=EBU_ROOT / 'seq-3341-20-24bit.wav.wav',
filename=EBU_ROOT / 'seq-3341-20-24bit.wav.npz',
bit_depth=24,
),
],
Expand All @@ -342,7 +348,7 @@ class Tech3342Compliance(ComplianceBase):
name='case21',
input=[
ComplianceSource(
filename=EBU_ROOT / 'seq-3341-21-24bit.wav.wav',
filename=EBU_ROOT / 'seq-3341-21-24bit.wav.npz',
bit_depth=24,
),
],
Expand All @@ -358,7 +364,7 @@ class Tech3342Compliance(ComplianceBase):
name='case22',
input=[
ComplianceSource(
filename=EBU_ROOT / 'seq-3341-22-24bit.wav.wav',
filename=EBU_ROOT / 'seq-3341-22-24bit.wav.npz',
bit_depth=24,
),
],
Expand All @@ -374,7 +380,7 @@ class Tech3342Compliance(ComplianceBase):
name='case23',
input=[
ComplianceSource(
filename=EBU_ROOT / 'seq-3341-23-24bit.wav.wav',
filename=EBU_ROOT / 'seq-3341-23-24bit.wav.npz',
bit_depth=24,
),
],
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-1-16bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-1-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-10-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-11-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-12-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-13-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-14-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-15-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-16-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-17-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-18-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-19-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-2-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-20-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-3-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-4-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-5-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-6-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-7-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-8-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-10-9-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-11-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-12-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-13-1-24bit.wav

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-13-2-24bit.wav

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-14-24bit.wav.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-15-24bit.wav.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-16-24bit.wav.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-17-24bit.wav.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-18-24bit.wav.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-19-24bit.wav.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-2-16bit.wav

This file was deleted.

Binary file not shown.
3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-20-24bit.wav.wav

This file was deleted.

This file was deleted.

Binary file not shown.
3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-21-24bit.wav.wav

This file was deleted.

Binary file not shown.
3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-22-24bit.wav.wav

This file was deleted.

Binary file not shown.
3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-23-24bit.wav.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-3-16bit-v02.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-4-16bit-v02.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-5-16bit-v02.wav

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3341-9-24bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3342-1-16bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3342-2-16bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3342-3-16bit.wav

This file was deleted.

3 changes: 0 additions & 3 deletions tests/data/ebu-loudness-test-setv05/seq-3342-4-16bit.wav

This file was deleted.

0 comments on commit 17d2e43

Please sign in to comment.