All pull requests from community contributors should target the main branch (default).
Description & motivation
Added a helper macro named "get_models" in the macros/helpers section. The macro is used to get a list of all models with a specified prefix, in a specified directory.
resolves #
This is a:
All pull requests from community contributors should target the
main
branch (default).Description & motivation
Added a helper macro named "get_models" in the macros/helpers section. The macro is used to get a list of all models with a specified prefix, in a specified directory.
Example: codegen.get_models(directory='marts', prefix='fct')
I mainly created this to make generate_model_yaml macro more powerful.
Example: codegen.generate_model_yaml( model_names = codegen.get_models(directory='marts', prefix='fct')
This way we can generate yamls for any set of models in our project.
Checklist