uataq.filesystem.core.DataFile#

class uataq.filesystem.core.DataFile(path)[source]#

Abstract base class for 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 to extract the date from the file name.

  • file_freq (str) – The file frequency.

  • ext (str) – The file extension.

__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

parse()

Parse the data file.