class_lookup
¶
Helpers used to find what type of format needs to be used to write to/read from the file.
CSVFormats
¶
Bases: CustomFormatEnum
The different formats that a csv file can exist in.
list_values
classmethod
¶
list_values() -> List[AbstractedFile]
Return a list of all the values of the enum.
CustomFormatEnum
¶
Bases: Enum
A custom base class for string Enums.
This class provides better type hinting for the value property.
list_values
classmethod
¶
list_values() -> List[AbstractedFile]
Return a list of all the values of the enum.
FileExtensions
¶
Bases: CustomStrEnum
The different file extensions that can be read from/written to.
MATFormats
¶
Bases: CustomFormatEnum
The different formats that a mat file can exist in.
list_values
classmethod
¶
list_values() -> List[AbstractedFile]
Return a list of all the values of the enum.
WFMFormats
¶
Bases: CustomFormatEnum
The different formats that a wfm file can exist in.
list_values
classmethod
¶
list_values() -> List[AbstractedFile]
Return a list of all the values of the enum.
access_type
¶
access_type(extension: FileExtensions, write: bool) -> str
How the file should be accessed.
| Parameters: |
|
|---|
find_class_format
¶
find_class_format(extension: FileExtensions, waveform_type: Type[Datum]) -> AbstractedFile
Find the file and class format based on what waveform was provided.
| Parameters: |
|
|---|
find_class_format_list
¶
find_class_format_list(extension: FileExtensions) -> List[AbstractedFile]
Find what possible file formats can be used based on the extension or waveform.
| Parameters: |
|
|---|
handle_extensions
¶
handle_extensions(extension: FileExtensions) -> CustomFormatEnum
Handle the extensions based on what the file path is.
| Parameters: |
|
|---|