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

Allow empty subsets of VarInfos #692

Merged
merged 2 commits into from
Oct 17, 2024
Merged

Conversation

mhauru
Copy link
Member

@mhauru mhauru commented Oct 16, 2024

Asking for subset(vi, VarName[]) used to error, with this it returns an empty vi like the original.

Also fixed a couple of mistakes in subset for Metadata, which were probably inconsequential, but caused the return value to carry with it unnecessary data.

mhauru and others added 2 commits October 16, 2024 11:31
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@coveralls
Copy link

coveralls commented Oct 16, 2024

Pull Request Test Coverage Report for Build 11363940723

Details

  • 12 of 12 (100.0%) changed or added relevant lines in 2 files are covered.
  • 17 unchanged lines in 5 files lost coverage.
  • Overall coverage increased (+0.08%) to 79.522%

Files with Coverage Reduction New Missed Lines %
src/model.jl 1 92.47%
src/contexts.jl 1 74.44%
src/threadsafe.jl 3 48.6%
src/abstract_varinfo.jl 3 74.63%
src/context_implementations.jl 9 57.79%
Totals Coverage Status
Change from base Build 11327761860: 0.08%
Covered Lines: 3324
Relevant Lines: 4180

💛 - Coveralls

Copy link

codecov bot commented Oct 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.12%. Comparing base (1d10278) to head (a02ec4c).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #692      +/-   ##
==========================================
+ Coverage   79.02%   79.12%   +0.10%     
==========================================
  Files          30       30              
  Lines        4200     4201       +1     
==========================================
+ Hits         3319     3324       +5     
+ Misses        881      877       -4     

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

Copy link
Member

@torfjelde torfjelde left a comment

Choose a reason for hiding this comment

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

Lovely @mhauru :) LGTM!

@mhauru mhauru enabled auto-merge October 17, 2024 08:05
@mhauru mhauru added this pull request to the merge queue Oct 17, 2024
Merged via the queue into master with commit 54691bf Oct 17, 2024
14 checks passed
@mhauru mhauru deleted the mhauru/empty-varinfo-subsets branch October 17, 2024 08:38
mhauru added a commit that referenced this pull request Oct 17, 2024
* Allow empty subsets of VarInfos

* Run JuliaFormatter

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@mhauru mhauru mentioned this pull request Oct 17, 2024
penelopeysm pushed a commit that referenced this pull request Oct 17, 2024
* Allow empty subsets of VarInfos (#692)

* Allow empty subsets of VarInfos

* Run JuliaFormatter

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* For VarInfo, fix merge and allow push!!ing new Symbols (#690)

* Fix treatment of gid in merge(::Metadata)

* Allowing pushing new symbols to TypedVarInfo

* Bump patch version to 0.30.1

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

3 participants