-
Notifications
You must be signed in to change notification settings - Fork 2
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
opposite category model in stdlib #102
Conversation
src/stdlib/models/Op.jl
Outdated
|
||
rename(::Nothing, ::Dict{Symbol,Symbol}) = nothing | ||
rename(nt::NamedTuple, d::Dict{Symbol,Symbol}) = | ||
NamedTuple(Dict([get(d, k, k) => v for (k, v) in pairs(nt)])) |
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.
Do you have to pass through Dict here?
julia> NamedTuple([:a=>1, :b=>2, :b=>3])
(a = 1, b = 3)
julia> NamedTuple(Dict([:a=>1, :b=>2, :b=>3]))
(a = 1, b = 3)
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #102 +/- ##
==========================================
- Coverage 96.82% 96.57% -0.25%
==========================================
Files 25 26 +1
Lines 1447 1345 -102
==========================================
- Hits 1401 1299 -102
Misses 46 46
☔ View full report in Codecov by Sentry. |
Need to update this in light of #106 |
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.
LGTM
An
OpC
model is a struct that wraps a category. Some tests ofop(FinSetC)
are provided.Addresses #101