pytimbre.spectral.time_histories.OverallLevelTimeHistory

class pytimbre.spectral.time_histories.OverallLevelTimeHistory

Bases: object

This class defines the collection of overall levels as a dictionary. As additional levels are defined and added to the LevelMetrics class they will be added to the dictionary. This object contains a list of times and a dictionary that contains a list of levels.

__init__()

Initialize the data within the class

Methods

__init__()

Initialize the data within the class

from_SpectralTimeHistory(sth)

This function extracts the data from the spectral time history and builds the data for the class with the LevelMetrics class.

to_dataframe()

Attributes

duration

frame_builder

header

integration_time

metrics

time_history_sample_rate

The number of samples per second of evey TimeHistory metric.

times

times_past_midnight

static from_SpectralTimeHistory(sth: SpectralTimeHistory)

This function extracts the data from the spectral time history and builds the data for the class with the LevelMetrics class. :param sth: The spectral data over time :type sth: SpectralTimeHistory :return: The collection of levels that were calculated from the spectrum objects at each time frame :rtype: OverallLevelTimeHistory

property time_history_sample_rate

The number of samples per second of evey TimeHistory metric.