From d5d12cbd4f8599972272e329240cc365aa464725 Mon Sep 17 00:00:00 2001 From: Rob Hallam <0504004h@student.gla.ac.uk> Date: Sat, 31 Aug 2024 14:27:18 +0100 Subject: [PATCH] refactor: [WFE.setup()] remove unneeded input file check Check for missing input files not needed as object cannot be initialised without them --- pipeline/feature_extractors.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pipeline/feature_extractors.py b/pipeline/feature_extractors.py index 65825ad..13fccd0 100644 --- a/pipeline/feature_extractors.py +++ b/pipeline/feature_extractors.py @@ -444,10 +444,6 @@ class WordFeatureExtractor(FeatureExtractor): """ logger.debug("WordFeatureExtractor setup") - # Validate input files - if not self.input_files: - raise ValueError("No input files provided") - # Validate words - raise a notice if none provided if len(words) == 0: logger.warning("No words provided for detection")