def __init__(self, name, global_path=DEFAULT_SETTINGS):
    self.name = name
    self.globals = GlobalSettings(global_path)
    path = (ClusterSettings.directory / f'{name}.yaml')
    text = path.read_text(encoding='utf-8')
    data = yaml.safe_load(text)
    self.job_type = data.get('job')
    self.job_options = data.get('options', {})
    self.backend_type = (data.get('backend') or self.globals.default_backend)
    self.backend_options = data.get('backend_options', {})
def __init__(self, name, global_path=DEFAULT_SETTINGS):
    self.name = name
    self.globals = GlobalSettings(global_path)
    path = (ClusterSettings.directory / f'{name}.yaml')
    text = path.read_text(encoding='utf-8')
    data = yaml.safe_load(text)
    self.job_type = data.get('job')
    self.job_options = data.get('options', {})
    self.backend_type = (data.get('backend') or self.globals.default_backend)
    self.backend_options = data.get('backend_options', {})