Skip to content

Commit 33010d7

Browse files
Merge pull request #485 from CPJKU/tov1.8.0
Update to version 1.8.0
2 parents 07e1c29 + 4ceb317 commit 33010d7

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release Notes
22

3-
## Version 1.7.1
3+
## Version 1.8.0
44

55
This version introduces the following changes. As of this version, the minimum required Python version is Python 3.10. Use Partitura version ≤ 1.7.0 for Python 3.7 to 3.9.
66

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
# built documents.
2929
#
3030
# The short X.Y version.
31-
version = "1.7.1"
31+
version = "1.8.0"
3232
# The full version, including alpha/beta/rc tags.
33-
release = "1.7.1"
33+
release = "1.8.0"
3434

3535
# The language for content autogenerated by Sphinx. Refer to documentation
3636
# for a list of supported languages.

partitura/io/exportkern.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import math
88
from collections import defaultdict
9+
from importlib.metadata import version
910

1011
import numpy
1112

@@ -17,9 +18,13 @@
1718
from partitura.utils import partition, iter_current_next, to_quarter_tempo
1819
from partitura.utils.misc import deprecated_alias, PathLike
1920

21+
2022
__all__ = ["save_kern"]
2123

2224

25+
VERSION = version("partitura")
26+
27+
2328
ACC_TO_SIGN = {
2429
0: "n",
2530
-1: "-",
@@ -328,7 +333,7 @@ def save_kern(
328333
out_data = exporter.parse()
329334
out_data = exporter.trim(out_data)
330335
# Use numpy savetxt to save the file
331-
footer = "Encoded using the Partitura Python package, version 1.6.0"
336+
footer = f"Encoded using the Partitura Python package, version {VERSION}"
332337
if out is not None:
333338
np.savetxt(
334339
fname=out,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "partitura"
7-
version = "1.7.1"
7+
version = "1.8.0"
88
description = "A package for handling symbolic musical information"
99
readme = { file = "README.md", content-type = "text/markdown" }
1010
requires-python = ">=3.10"

tests/test_synth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def test_export(self):
288288
np.allclose(
289289
rec_audio / rec_audio.max(),
290290
original_audio / original_audio.max(),
291-
atol=1e-4,
291+
atol=1e-3,
292292
)
293293
)
294294

0 commit comments

Comments
 (0)