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

opposite category model in stdlib #102

Merged
merged 4 commits into from
Sep 20, 2023
Merged

opposite category model in stdlib #102

merged 4 commits into from
Sep 20, 2023

Conversation

kris-brown
Copy link
Collaborator

@kris-brown kris-brown commented Sep 13, 2023

An OpC model is a struct that wraps a category. Some tests of op(FinSetC) are provided.

Addresses #101

@kris-brown kris-brown requested a review from olynch September 13, 2023 20:53

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)]))
Copy link
Member

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
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.25% ⚠️

Comparison is base (83ac47c) 96.82% compared to head (18f8118) 96.57%.

❗ Current head 18f8118 differs from pull request most recent head e3dae71. Consider uploading reports for the commit e3dae71 to get more accurate results

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              
Files Changed Coverage Δ
src/stdlib/models/module.jl 100.00% <ø> (ø)
src/stdlib/models/FinSets.jl 92.85% <100.00%> (+0.54%) ⬆️
src/stdlib/models/Op.jl 100.00% <100.00%> (ø)

... and 9 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kris-brown kris-brown self-assigned this Sep 14, 2023
@kris-brown kris-brown added the enhancement New feature or request label Sep 14, 2023
@olynch
Copy link
Member

olynch commented Sep 20, 2023

Need to update this in light of #106

Copy link
Member

@olynch olynch left a comment

Choose a reason for hiding this comment

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

LGTM

@olynch olynch merged commit 15cec29 into main Sep 20, 2023
7 checks passed
@kris-brown kris-brown deleted the op branch September 21, 2023 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants