def __init__(self, string): words = string.split(":") name = words.pop(0).strip() root_dir = words.pop(0).strip() kwargs = parse_options(words) self._data = PowerSpectraLoader.get(name.strip(), root_dir.strip(), **kwargs)
def register(cls): PowerSpectraLoader.store_class(cls)