AnalyzerConfigurationError now raised if classifier_model_path and classifier_labels_path are not used together.
from birdnetlib.analyzer import Analyzer, AnalyzerConfigurationError
analyzer = Analyzer(classifier_model_path="/some/path/")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/birdnetlib/src/birdnetlib/analyzer.py", line 108, in __init__
raise AnalyzerConfigurationError(
birdnetlib.analyzer.AnalyzerConfigurationError: Using a custom-trained classifier requires both classifier_model_path and classifier_labels_path
Fixes #91 and adds test case for configuration.
AnalyzerConfigurationError
now raised ifclassifier_model_path
andclassifier_labels_path
are not used together.