pitchscapes.model.ScapeWrapper
- class pitchscapes.model.ScapeWrapper(model, cluster)[source]
Bases:
Scape
Wrapper class for PitchScapeMixtureModel, so that a specific cluster can be accessed as Scape object.
Public Methods:
__init__
(model, cluster)__getitem__
(item)Return value of the scape at position :type item: :param item: (start, end) with start < end :return: value of the scape for the time window (start, end)
Inherited from
Scape
__init__
(min_time, max_time)__getitem__
(item)Return value of the scape at position :type item: :param item: (start, end) with start < end :return: value of the scape for the time window (start, end)
assert_valid_time_window
(start, end)
- __annotations__ = {}
- __dict__ = mappingproxy({'__module__': 'pitchscapes.model', '__doc__': '\n Wrapper class for PitchScapeMixtureModel, so that a specific cluster can be accessed as Scape object.\n ', '__init__': <function ScapeWrapper.__init__>, '__getitem__': <function ScapeWrapper.__getitem__>, '__annotations__': {}})
- __getitem__(item)[source]
Return value of the scape at position :type item: :param item: (start, end) with start < end :return: value of the scape for the time window (start, end)
- __module__ = 'pitchscapes.model'
- __weakref__
list of weak references to the object (if defined)
- assert_valid_time_window(start, end)