3.4.3.2. qupulse.hardware.feature_awg.base_features

class qupulse.hardware.feature_awg.base_features.Feature(target_type)[source]

Bases: object

Base class for features of `FeatureAble`s.

property target_type: Type[qupulse.hardware.feature_awg.base_features.FeatureAble]
Return type

Type[FeatureAble]

class qupulse.hardware.feature_awg.base_features.FeatureAble[source]

Bases: Generic[qupulse.hardware.feature_awg.base_features.FeatureType]

Base class for all types that are able to handle features. The features are saved in a dictionary and the methods can be called with the __getitem__-operator.

add_feature(feature)[source]

The method adds the feature to a Dictionary with all features

Parameters

feature (~FeatureType) – A certain feature which functions should be added to the dictionary _features

Return type

None

property features: Mapping[qupulse.hardware.feature_awg.base_features.FeatureType, Callable]

Returns the dictionary with all features of a FeatureAble

Return type

Mapping[~FeatureType, Callable]