dcase_util.containers.FileMixin
- class dcase_util.containers.FileMixin(*args, **kwargs)[source]
File mixin to give class methods to load and store content.
Methods
__init__
(*args, **kwargs)delimiter
([exclude_delimiters])Use csv.sniffer to guess delimiter for CSV file
detect_file_format
([filename])Detect file format from extension
empty
()Check if file is empty
exists
()Checks that file exists
Get file information, filename
is_package
([filename])Determine if the file is compressed package.
Validate file format
Attributes
bytes
File size in bytes
logger
md5
Checksum for file.