optiprofiler.legacy_compat.LegacyFeatureImport

optiprofiler.legacy_compat.LegacyFeatureImport#

class optiprofiler.legacy_compat.LegacyFeatureImport(feature, n_runs, declared_name, declared_spec, source)[source]#

The result of import_legacy_feature().

feature is the canonical specification built from the effective stages and their stage-local options; its declaration is the one the historical object recorded (1.x bridge objects) and otherwise unknown (feature.declared.route is None, feature.declared_name is None); n_runs is the run count retained by the historical object (a resolved value, not evidence of an explicit request; None when none was stored); declared_name and declared_spec are the historical declaration verbatim when the object recorded one and None otherwise; source is the historical class path.

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.