BaseLoader
- class BaseLoader.BaseLoader(path: str)[source]
Abstract base class for all loader classes.
This class provides a common interface for all loader classes. Loader classes are responsible for loading data from a file.
- Attributes:
- None
Methods
__init__(self, path):
Abstract constructor method that must be implemented by any concrete (i.e., non-abstract) subclass.
load(self, **kwargs):
Abstract method intended to be used to load data from the file specified in the constructor.
_check_that_tuple_contains_integers_only(self, events_tuple):
Checks if all elements inside the event tuple are integers.
_skip_lines(self, fname):
Skips the initial header and comment lines in a file.