-
Notifications
You must be signed in to change notification settings - Fork 35
Change deprecation warning to error for sim instance access methods #731
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #731 +/- ##
==========================================
- Coverage 80.64% 80.62% -0.02%
==========================================
Files 38 38
Lines 2867 2844 -23
==========================================
- Hits 2312 2293 -19
+ Misses 555 551 -4
Continue to review full report at Codecov.
|
src/mcs/mcs_types.jl
Outdated
msg = "getindex method for `SimulationInstance` has been replaced with getdataframe function for consistency of return type, please use getdataframe instead" | ||
Base.depwarn("$msg, $(stacktrace())", :getindex) | ||
return sim_inst.results[model][(comp_name, datum_name)] | ||
error("$msg") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error("$msg") | |
error(msg) |
:) Or don't use a local var at all and just pass the string directly to error
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All relics of older more complex messages from depreciations :) ... I’ll go through these today
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome, thanks for going through these Lisa!
This deprecation warning needs to be an error for v1.0.0, I noticed this when working on PAGE.