CombinableLoader

class caqtus.analysis.loading.CombinableLoader(*args, **kwargs)

Bases: ShotImporter[DataFrame], ABC

A callable that can load data from a shot and can be combined with other loaders.

Objects that inherit from this class can be combined with other loaders using the + and * operators.

The + operator will concatenate the dataframes returned by the loaders.

The * operator will perform a cross product of the dataframes returned by the loaders.

abstractmethod load(
shot: Shot,
) DataFrame

Load data from a shot and return it as a DataFrame.

This method must be implemented by subclasses. It must return a dataframe containing the data loaded from the shot.