Skip to content

Commit

Permalink
Support for TensorFlow 2.4.1 (#21)
Browse files Browse the repository at this point in the history
* tf 2.4.1
* Python 3.8
* Fix 'FigureCanvasAgg' object has no attribute 'set_window_title'
  • Loading branch information
hendriks73 authored Oct 11, 2024
1 parent 46ce4e6 commit f79941b
Show file tree
Hide file tree
Showing 40 changed files with 23 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [ 3.6, 3.7 ]
python-version: [ 3.8 ]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.7'
python-version: '3.8'
- name: Install dependencies
run: |
sudo apt-get install libsndfile1
Expand Down
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Changes
=======

0.0.8:
- Moved to TensorFlow 2.4.1 and Python 3.8

0.0.7:
- Added DOIs to bibtex entries.
- Added README DOI badge for SMC paper.
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ For programmatic use via the Python API, please see `here <#programmatic-usage>`
Installation
============

In a clean Python 3.6 or 3.7 environment, simply run:
In a clean Python 3.8 environment, simply run:

.. code-block:: console
pip install tempocnn
If you rather want to install from source, clone this repo and run
``setup.py install`` using Python 3.6 or 3.7:
``setup.py install`` using Python 3.8:

.. code-block:: console
Expand Down
8 changes: 3 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
tensorflow==1.15.5
protobuf<3.19.0
scipy>=1.5.3
librosa>=0.6.2
jams>=0.3.1
librosa==0.9.2
matplotlib>=3.0.0
h5py>=2.7.0,<3.0.0
scipy>=1.5.3
setuptools>=59.6.0
tensorflow==2.4.1

5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
packages=find_packages(exclude=['test', 'docs']),
package_data={'tempocnn': package_data},
exclude_package_data={'': ['tests', 'docs']},
python_requires='>=3.6',
python_requires='>=3.8',
install_requires=requirements,
extras_require={
"testing": [
Expand All @@ -85,8 +85,7 @@
]
},
classifiers=['Development Status :: 3 - Alpha',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Environment :: Console',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Topic :: Multimedia :: Sound/Audio :: Analysis',
Expand Down
2 changes: 1 addition & 1 deletion tempocnn/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def tempogram():
frame_length = (fft_hop_length / sr) * hop_length

fig = plt.figure()
fig.canvas.set_window_title('tempogram: ' + file)
fig.canvas.manager.set_window_title('tempogram: ' + file)
if args.png:
fig.set_size_inches(5, 2)

Expand Down
Loading

0 comments on commit f79941b

Please sign in to comment.