Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unique Backup Parameter Names #908

Merged
merged 2 commits into from
Jun 22, 2022
Merged

Unique Backup Parameter Names #908

merged 2 commits into from
Jun 22, 2022

Conversation

lrennels
Copy link
Collaborator

@lrennels lrennels commented Jun 22, 2022

This PR handles issue #865

When a connector component is added using backup data, the parameter name for the backup data is a model parameter (unshared) that was getting overwritten if the destination component had the same destination parameter name as another. This PR makes sure the added model parameter has a unique name.

Should we consider a check in add_model_param! to make sure a given parameter does not yet exist in the model, or is overwriting sometimes desired?

@lrennels lrennels changed the title Use unique name for backup parameter Unique Backup Parameter Names Jun 22, 2022
@codecov
Copy link

codecov bot commented Jun 22, 2022

Codecov Report

Merging #908 (2114bd7) into master (c40c4b0) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #908      +/-   ##
==========================================
+ Coverage   84.52%   84.56%   +0.03%     
==========================================
  Files          40       40              
  Lines        3878     3881       +3     
==========================================
+ Hits         3278     3282       +4     
+ Misses        600      599       -1     
Flag Coverage Δ
unittests 84.56% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/core/connections.jl 89.88% <100.00%> (+0.08%) ⬆️
src/core/defcomp.jl 79.45% <0.00%> (+0.42%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c40c4b0...2114bd7. Read the comment docs.

@lrennels lrennels merged commit c62435a into master Jun 22, 2022
@lrennels lrennels deleted the connector-backup branch June 22, 2022 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant