Beispiel #1
0
 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)
Beispiel #2
0
 def register(cls):
     PowerSpectraLoader.store_class(cls)