Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new method: new_template_with_spec_file under template.py #181

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

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