Skip to content

Commit 76ae625

Browse files
Update build dependencies, workflows, and lint Python files
1 parent 531aa7a commit 76ae625

6 files changed

Lines changed: 16 additions & 12 deletions

File tree

.github/workflows/codeql-analysis.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
push:
88
branches:
99
- main
10-
- jrp/ci-cd-fixes
1110
schedule:
1211
- cron: '0 0 * * 1'
1312

.github/workflows/docker-publish.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
push:
88
branches:
99
- main
10-
- jrp/ci-cd-fixes
1110
tags:
1211
- v*
1312
schedule:

.github/workflows/testing.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ jobs:
3636
python -m pip install --upgrade pip
3737
pip install -r requirements/runtime.txt
3838
pip install -r requirements/optional.txt
39-
cd tpl/pyastar2d
40-
pip install -e .
41-
cd ../../
4239
pip install -e .
4340
4441
- name: Check with pre-commit

batbot/spectrogram/__init__.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,10 +1513,14 @@ def compute_wrapper(
15131513
)
15141514

15151515
if 'waveplot' in segments:
1516-
cv2.imwrite(join(debug_path, 'spectrogram.compressed.waveplot.png'), segments['waveplot'])
1516+
cv2.imwrite(
1517+
join(debug_path, 'spectrogram.compressed.waveplot.png'), segments['waveplot']
1518+
)
15171519

15181520
if 'stft_db' in segments and 'waveplot' in segments:
1519-
temp_top = np.stack((segments['stft_db'], segments['stft_db'], segments['stft_db']), axis=2)
1521+
temp_top = np.stack(
1522+
(segments['stft_db'], segments['stft_db'], segments['stft_db']), axis=2
1523+
)
15201524
temp_bot = cv2.resize(
15211525
segments['waveplot'], temp_top.shape[:2][::-1], interpolation=cv2.INTER_LINEAR
15221526
)
@@ -1611,10 +1615,12 @@ def compute_wrapper(
16111615
'segments': metas,
16121616
}
16131617
if 'stft_db' in segments:
1614-
metadata['size']['compressed'] = {
1615-
'width.px': segments['stft_db'].shape[1],
1616-
'height.px': segments['stft_db'].shape[0],
1617-
},
1618+
metadata['size']['compressed'] = (
1619+
{
1620+
'width.px': segments['stft_db'].shape[1],
1621+
'height.px': segments['stft_db'].shape[0],
1622+
},
1623+
)
16181624

16191625
metadata_path = join(output_folder, f'{base}.metadata.json')
16201626
with open(metadata_path, 'w') as metafile:

requirements/optional.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ flake8
55
# gradio
66
ipython
77
isort
8-
line_profiler
98
# onnx
109
# onnxruntime
1110
pre-commit

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@ install_requires =
2222
cryptography
2323
cython
2424
librosa
25+
line_profiler
2526
matplotlib
2627
numpy
2728
opencv-python-headless
2829
Pillow
2930
pooch
31+
pyastar2d @ git+https://github.com/bluemellophone/batbot-pyastar2d@master
3032
rich
33+
scikit-image
34+
shapely
3135
sphinx-click
3236
tqdm
3337
python_requires = >=3.7

0 commit comments

Comments
 (0)