write_repres_attrs

ketos.data_handling.database_interface.write_repres_attrs(table, x)[source]

Writes the audio representation attributes into the HDF5 database, where they become stored as table attributes.

The audio representation attributes include,

  • Time resolution in seconds (time_res)

  • Minimum frequency in Hz (freq_min)

  • Spectrogram type (type)

  • Frequency resolution in Hz (freq_res) or, in the case of CQT spectrograms, the number of bins per octave (bins_per_octave).

Args:
table: tables.Table

Table in which the spectrogram will be stored (described by spec_description()).

x: instance of a class or numpy.array

The audio object to be stored in the table.

Returns:

None.