Skip to content

Conversation

@sunjin-choi
Copy link

Simply put, a wrapper method for new_template to be able to load the module/class/parameters from the pre-written yaml spec file
Explanation:
This method will load the spec file, reads the layout class and parameters, then create a new template with those.
It can also update the parameter values if appropriately given as kwargs.
The procedure is useful in the context of reusing the large spec file, enabling the device design choices to be kept within a few yaml files and thus hierarchically managed.
Written as a simple wrapper method for new_template

Caveat: exception handlings not implemented, since most of them are handled by built-in exceptions (AttributeError from class-missing errors, FileLoadError from yaml file missing, etc) and BPG exception classes (new_template method)

Also, this commit includes few additional module calls inside template.py: importlib, yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant