Skip to content

Commit

Permalink
fix to container append numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
rachealerhard committed Feb 24, 2022
1 parent 0f4d125 commit cda6106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/SUAVE/Core/Container.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def append(self,val):
val.tag = tag + str(n_comps+1)

# Check again, because theres an outside chance that its duplicate again. Then assign a random
if tag in keys:
if val.tag in keys:
val.tag = tag + str(n_comps+random.randint(0,1000))

Data.append(self,val)
Expand Down

0 comments on commit cda6106

Please sign in to comment.