From 45a7e8c4a5cb064625f9d35cc9377a3b96e716e1 Mon Sep 17 00:00:00 2001 From: Christopher Landschoot Date: Wed, 19 Jun 2024 10:07:45 -0500 Subject: [PATCH] Corrected file reference to pkl filter file. --- CHANGELOG.md | 7 ++++++- setup.cfg | 2 +- torch_log_wmse/__init__.py | 2 +- torch_log_wmse/freq_weighting_filter.py | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe6230b..2f383f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -71,4 +71,9 @@ Updated badge references in the `README`. ## 0.2.2 (2024-06-18) #### Changed GitHub repo name & references -Updated GitHub repo name to appropriate `torch-log-wmse`. `torch-log-wmse-audio-quality` can still be installed, but everything will reference the new name (`torch-log-wmse`) moving forward. \ No newline at end of file +Updated GitHub repo name to appropriate `torch-log-wmse`. `torch-log-wmse-audio-quality` can still be installed, but everything will reference the new name (`torch-log-wmse`) moving forward. + +## 0.2.3 (2024-06-19) + +#### Weighted filter reference bug +Corrected file reference to pkl filter file. \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 3ae2c16..76cbfb8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = torch-log-wmse -version = 0.2.2 +version = 0.2.3 author = Christopher Landschoot author_email = crlandschoot@gmail.com license = Apache License 2.0 diff --git a/torch_log_wmse/__init__.py b/torch_log_wmse/__init__.py index 8ce9b98..1be84a2 100644 --- a/torch_log_wmse/__init__.py +++ b/torch_log_wmse/__init__.py @@ -1,3 +1,3 @@ from .metric import LogWMSE -__version__ = "0.2.2" +__version__ = "0.2.3" diff --git a/torch_log_wmse/freq_weighting_filter.py b/torch_log_wmse/freq_weighting_filter.py index e23ba52..b35f8b5 100644 --- a/torch_log_wmse/freq_weighting_filter.py +++ b/torch_log_wmse/freq_weighting_filter.py @@ -98,7 +98,7 @@ def __init__( ): # Load the impulse response if not provided if impulse_response is None: - with resources.open_binary("torch_log_wmse_audio_quality", "filter_ir.pkl") as f: + with resources.open_binary("torch_log_wmse", "filter_ir.pkl") as f: impulse_response = torch.tensor(pickle.load(f), dtype=torch.float32) # Resample the impulse response if necessary