calamari.io.base.BaseLoader#
- class calamari.io.base.BaseLoader#
Bases:
ABCInterface every file-format loader must implement.
A loader is a stateless class (its two methods are class methods):
sniff()inspects header lines to claim a file, andload()parses it into aMeasurement.- format_name: str = ''#
Short human-readable / canonical format name, e.g.
'MPMS3'. Also the token accepted byload(..., fmt=...)to force this loader.
- abstractmethod classmethod sniff(lines)#
Return True if this loader recognises the file.
- abstractmethod classmethod load(path)#
Parse
pathinto aMeasurement.- Return type: