Skip to content

Commit

Permalink
Create copy of outer template
Browse files Browse the repository at this point in the history
  • Loading branch information
nanglo123 authored and bgyori committed Jan 16, 2025
1 parent 12f5d5d commit e3c10fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mira/metamodel/composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ def compose_two_models(tm0, tm1):
# tm0 take priority
# replace template concept names if applicable
new_inner_template = deepcopy(inner_template)
new_outer_template = deepcopy(outer_template)
if hasattr(inner_template, "subject"):
if inner_template.subject.name in replaced_concept_map:
new_inner_template.subject.name = replaced_concept_map[
Expand All @@ -244,7 +245,7 @@ def compose_two_models(tm0, tm1):
if not check_template_in_inter_edge_dict(inter_template_edges,
outer_tm_id,
outer_template_id):
process_template(new_templates, outer_template, tm0,
process_template(new_templates, new_outer_template, tm0,
new_parameters, new_initials,
replaced_concept_map)

Expand Down

0 comments on commit e3c10fc

Please sign in to comment.