pitchscapes.scapes.Scape
- class pitchscapes.scapes.Scape(min_time, max_time)[source]
Bases:
object
Abstract base class for scapes objects. Which has a minimum time (min_time) a maximum time (max_time) and a well-defined value for any window (t1, t2) with min_time <= t1 < t2 <= max_time. The value can be retrieved via scape[t1, t2].
Public Methods:
__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.scapes', '__doc__': '\n Abstract base class for scapes objects. Which has a minimum time (min_time) a maximum time (max_time) and a\n well-defined value for any window (t1, t2) with min_time <= t1 < t2 <= max_time. The value can be retrieved via\n scape[t1, t2].\n ', '__init__': <function Scape.__init__>, '__getitem__': <function Scape.__getitem__>, 'assert_valid_time_window': <function Scape.assert_valid_time_window>, '__dict__': <attribute '__dict__' of 'Scape' objects>, '__weakref__': <attribute '__weakref__' of 'Scape' objects>, '__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.scapes'
- __weakref__
list of weak references to the object (if defined)