From 082cedf6485ee8e05a1c91254739c0045a473e27 Mon Sep 17 00:00:00 2001 From: marvin84 Date: Tue, 26 Mar 2024 15:22:17 +0100 Subject: [PATCH 1/2] to be consistent with other similar functions --- meta/system.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta/system.py b/meta/system.py index e732cf1e..0a7c5f46 100644 --- a/meta/system.py +++ b/meta/system.py @@ -323,14 +323,15 @@ def mfcc_features(self, corpus: str, num_deriv: int = 2, num_features: int = 33, self.add_derivatives(corpus, "mfcc", num_deriv, num_features) self.add_derivatives(corpus, "uncached_mfcc", num_deriv, num_features) - def fb_features(self, corpus: str, **kwargs): + def fb_features(self, corpus: str, prefix: str = "", **kwargs): """ :param corpus: :param kwargs: + :param prefix: :return: """ self.jobs[corpus]["fb_features"] = f = features.FilterbankJob(self.crp[corpus], **kwargs) - f.add_alias("%s_fb_features" % corpus) + f.add_alias("%s%s_fb_features" % (prefix, corpus)) self.feature_caches[corpus]["fb"] = f.out_feature_path["fb"] self.feature_bundles[corpus]["fb"] = f.out_feature_bundle["fb"] From 3de6a64065480d1fb25446b7d37d846e9464ac40 Mon Sep 17 00:00:00 2001 From: marvin84 Date: Tue, 26 Mar 2024 15:26:22 +0100 Subject: [PATCH 2/2] black --- meta/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/system.py b/meta/system.py index 0a7c5f46..cbc2dee0 100644 --- a/meta/system.py +++ b/meta/system.py @@ -331,7 +331,7 @@ def fb_features(self, corpus: str, prefix: str = "", **kwargs): :return: """ self.jobs[corpus]["fb_features"] = f = features.FilterbankJob(self.crp[corpus], **kwargs) - f.add_alias("%s%s_fb_features" % (prefix, corpus)) + f.add_alias("%s%s_fb_features" % (prefix, corpus)) self.feature_caches[corpus]["fb"] = f.out_feature_path["fb"] self.feature_bundles[corpus]["fb"] = f.out_feature_bundle["fb"]