uataq.filesystem.groupspaces.horel.HorelH5File#

class uataq.filesystem.groupspaces.horel.HorelH5File(path, instrument)[source]#

Bases: HorelFile

Class for parsing H5 files from the Horel group.

Variables:
  • path (str) – The file path.

  • period (pd.Period) – The period of the data file.

  • logger (str) – The logger name.

  • date_slicer (slice) – A slice object to extract the date from the file name.

  • file_freq (str) – The file frequency.

  • ext (str) – The file extension.

  • time_col (str) – The time column name.

  • instrument (str) – The instrument name.

__init__(path, instrument)#

Initialize a HorelFile subclass object.

The instrument parameter is used to filter columns based on the instrument name.

Parameters:
  • path (str) – The file path.

  • instrument (str) – The instrument name - used to filter columns.

Methods

parse()

Parse the H5 file and return a DataFrame.

Inherited

From HorelFile: coerce_numeric, convert_nodata, format_time, usecols