rfwtools.example.IExample
- class rfwtools.example.IExample(data_dir=None)[source]
Bases:
objectAbstract class that defines the basic interface for an Example.
This only defines methods and properties related to data access.
Methods
__init__([data_dir])Construct an instance of the Example class.
Get this Example's ExampleType.
This method should do everything necessary to create an example_df DataFrame at a minimum.
This method should do everything necessary to free up memory used in load_data.
Attributes
The DataFrame for holding the actual waveform data
The directory where the waveform data can be found.
The type of example this is.
- data_dir
The directory where the waveform data can be found. None if Config is to be referenced.
- Type:
(str)
- e_type
The type of example this is.
- Type:
- event_df
The DataFrame for holding the actual waveform data
- Type:
(pd.DataFrame)
- get_example_type()[source]
Get this Example’s ExampleType.
- Return type:
- Returns:
The Enum corresponding to the class type