def _get_yaml_dict(self, yfile): from savu.plugins.loaders.yaml_converter import YamlConverter yaml = YamlConverter() template_check = pu.is_template_param(yfile) yfile = template_check[1] if template_check is not False else yfile yaml.parameters = {'yaml_file': yfile} return yaml.setup(template=True)