Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docstring to create_template() function and make it faster (#90)
* Update create_template with documentation and change the function to use list comprehension to make it faster * Add unit tests for the create_template function * Add slightly faster improvement as local variable is faster than instance varable access * Update docstring and move length assertion to top of function. removed the param_str variable as it acts like a penalty to function executions where the param_str is not accessed at all. Signed-off-by: Nikolai Kummer <nikolai.kummer@gmail.com> --------- Signed-off-by: Nikolai Kummer <nikolai.kummer@gmail.com> Co-authored-by: Superskyyy <Superskyyy@outlook.com>
- Loading branch information