ynop / audiomate

No whitespaces allowed surrounding docstring text FLK-D210
Documentation
Minor
5 occurrences in this check
No whitespaces allowed surrounding docstring text
186
187    @staticmethod
188    def map_gender(gender):
189        """ Map gender to correct value. """190
191        if gender == 'male':
192            return issuers.Gender.MALE
No whitespaces allowed surrounding docstring text
173
174    @staticmethod
175    def map_age(age):
176        """ Map age to correct age-group. """177
178        if age in [None, '']:
179            return issuers.AgeGroup.UNKNOWN
No whitespaces allowed surrounding docstring text
131        corpus.import_subview(subset_idx, subview)
132
133    def create_assets_if_needed(self, corpus, path, entry):
134        """ Create File/Utterance/Issuer, if they not already exist and return utt-idx. """135        file_name = entry[1]
136        file_idx, _ = os.path.splitext(file_name)
137
No whitespaces allowed surrounding docstring text
104        return subset_ids
105
106    def load_subset(self, corpus, path, subset_idx):
107        """ Load subset into corpus. """108        csv_file = os.path.join(path, '{}.tsv'.format(subset_idx))
109        subset_utt_ids = []
110
No whitespaces allowed surrounding docstring text
 88
 89    @staticmethod
 90    def get_subset_ids(path):
 91        """ Return a list with ids of all available subsets (based on existing csv-files). """ 92        subset_ids = []
 93
 94        for subset_path in glob.glob(os.path.join(path, '*.tsv')):