Skip to content

Conversation

lrennels
Copy link
Collaborator

@lrennels lrennels commented Sep 8, 2021

No description provided.

@codecov
Copy link

codecov bot commented Sep 8, 2021

Codecov Report

Merging #842 (96d5648) into master (c714cd4) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #842   +/-   ##
=======================================
  Coverage   84.27%   84.28%           
=======================================
  Files          40       40           
  Lines        3783     3785    +2     
=======================================
+ Hits         3188     3190    +2     
  Misses        595      595           
Flag Coverage Δ
unittests 84.28% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
src/core/connections.jl 89.10% <100.00%> (+0.04%) ⬆️

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 c714cd4...96d5648. Read the comment docs.

@lrennels
Copy link
Collaborator Author

@davidanthoff @jmwingenroth can someone approve this? It's a follow up to the big set and update parameters update we did, just putting up some more safety barriers for people using this function (which is a speedup backdoor that only Frank and Tony use right now anyways)

Comment on lines +828 to +830
is_shared(param) && error("$comp_name:$param_name is connected to a ",
"a shared model parameter with name $model_param_name in the model, ",
"to update the shared model parameter please call `update_param!(mi, $model_param_name, value)` ",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
is_shared(param) && error("$comp_name:$param_name is connected to a ",
"a shared model parameter with name $model_param_name in the model, ",
"to update the shared model parameter please call `update_param!(mi, $model_param_name, value)` ",
is_shared(param) && error("$comp_name:$param_name is connected to",
"a shared model parameter with name $model_param_name in the model.",
"To update the shared model parameter, please call `update_param!(mi, $model_param_name, value)` ",

@lrennels lrennels merged commit 7606960 into master Sep 17, 2021
@lrennels lrennels deleted the set-param-mi branch September 17, 2021 02:09
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.

2 participants