Skip to content

Commit

Permalink
Merge pull request #27 from descriptinc/v0.2.7
Browse files Browse the repository at this point in the history
API Change: Transforms take a single signal.
  • Loading branch information
pseeth authored Mar 10, 2022
2 parents 104ee3a + 1a7a186 commit 19a2b96
Show file tree
Hide file tree
Showing 7 changed files with 256 additions and 242 deletions.
2 changes: 1 addition & 1 deletion audiotools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.2.6"
__version__ = "0.2.7"
from .core import AudioSignal, STFTParams, Meter, util
from . import metrics
from . import data
Expand Down
2 changes: 1 addition & 1 deletion audiotools/data/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def __getitem__(self, idx):
# Instantiate the transform.
item = {"signal": signal}
if self.transform is not None:
item.update(self.transform.instantiate(state, signal=signal))
item["transform_args"] = self.transform.instantiate(state, signal=signal)

return item

Expand Down
Loading

0 comments on commit 19a2b96

Please sign in to comment.