uataq.filesystem.groupspaces.lin.LinDatFile#

class uataq.filesystem.groupspaces.lin.LinDatFile(path)[source]#

Bases: DataFile

A class for parsing Lin data files.

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 for extracting the date from the file name.

  • file_freq (str) – The file frequency.

  • ext (str) – The file extension.

  • instrument (str) – The instrument name, read from the file path.

  • lvl (str) – The data level, read from the file path.

__init__(path)[source]#

Initialize the DataFile object.

Determines the period of the data file from the file name.

Parameters:

path (str) – The file path.

Methods

get_instrument_name()

Get the instrument name from the file path.

get_lvl()

Get the data level from the file path.

parse()

Parse a Lin data file.