-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added --upstream-edm code generation support
- Loading branch information
1 parent
506060f
commit 3d970f0
Showing
5 changed files
with
142 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
{% macro julia_parameters(params, prefix, suffix) %} | ||
{% macro julia_parameters(params, suffix, upstream_edm=None, upstream_edm_name=None) %} | ||
{%- if params -%}{ | ||
{%- set comma = joiner(',') -%} | ||
{%- for par in params -%} | ||
{{ comma() }}{{ prefix }}{{ par }}{{ suffix }} | ||
{{comma() }} | ||
{%- if upstream_edm and (par[1] in upstream_edm.components or par[1] in upstream_edm.datatypes) %} | ||
{{- upstream_edm_name }}.{{ par[0] }}{{ suffix -}} | ||
{%- else %} | ||
{{- par[0] }}{{ suffix -}} | ||
{%- endif %} | ||
{%- endfor -%} | ||
}{%- endif -%} | ||
{%- endmacro -%} |
Oops, something went wrong.