def _initialise(): """Set cppcore initial values""" cppcore.Initialize(_settings.dependencyfile_path, "log") # First set some settings that are used by the feature extraction for setting_name, int_setting in list(_int_settings.items()): cppcore.setFeatureInt(setting_name, [int_setting]) for setting_name, double_setting in list(_double_settings.items()): cppcore.setFeatureDouble(setting_name, [double_setting])
def _initialise(): """Set cppcore initial values""" cppcore.Initialize(_settings.dependencyfile_path, "log") # First set some settings that are used by the feature extraction cppcore.setFeatureDouble('spike_skipf', [0.1]) cppcore.setFeatureInt('max_spike_skip', [2]) cppcore.setFeatureDouble('Threshold', [_settings.threshold]) cppcore.setFeatureDouble('DerivativeThreshold', [_settings.derivative_threshold]) cppcore.setFeatureDouble('interp_step', [0.1]) cppcore.setFeatureDouble('burst_factor', [1.5]) cppcore.setFeatureDouble("initial_perc", [0.1])
def getFeatureNames(): """Return a list with the name of all the available features Returns ======= feature_names : list of strings A list that contains all the feature names available in the eFEL. These names can be used in the featureNames argument of e.g. getFeatureValues() """ cppcore.Initialize(_settings.dependencyfile_path, "log") feature_names = [] cppcore.getFeatureNames(feature_names) return feature_names