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

Remove selector stuff from VarInfo tests and link/invlink #780

Open
wants to merge 18 commits into
base: release-0.35
Choose a base branch
from

Conversation

mhauru
Copy link
Member

@mhauru mhauru commented Jan 16, 2025

This PR implements a part of moving away from using Selectors/Gibbs IDs/indexing by samplers. It does two things:

  • It removes any and all mentions of indexing VarInfos by samplers in test/varinfo.jl.
  • It reworks link, link!!, invlink, and invlink!! to not take samplers as arguments anymore, but rather (iterables of) VarNames.

These two changes were easiest to do at the same time, for reasons.

Note that more clean up Selector/Gibbs ID stuff is to come, but I'm asking for code review at this stage to avoid one megareview. This PR is not to be merged to master, but rather to #779, which will collect all Selector-removal changes.

@coveralls
Copy link

coveralls commented Jan 16, 2025

Pull Request Test Coverage Report for Build 12813097029

Details

  • 75 of 88 (85.23%) changed or added relevant lines in 4 files are covered.
  • 59 unchanged lines in 7 files lost coverage.
  • Overall coverage decreased (-12.7%) to 73.636%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/abstract_varinfo.jl 12 16 75.0%
src/threadsafe.jl 2 6 33.33%
src/varinfo.jl 59 64 92.19%
Files with Coverage Reduction New Missed Lines %
src/simple_varinfo.jl 2 84.02%
src/sampler.jl 2 92.54%
src/selector.jl 3 42.86%
src/abstract_varinfo.jl 4 75.82%
src/model.jl 5 80.0%
src/varinfo.jl 21 84.2%
src/threadsafe.jl 22 46.61%
Totals Coverage Status
Change from base Build 12812614355: -12.7%
Covered Lines: 3212
Relevant Lines: 4362

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jan 16, 2025

Pull Request Test Coverage Report for Build 12932659074

Details

  • 143 of 172 (83.14%) changed or added relevant lines in 5 files are covered.
  • 67 unchanged lines in 8 files lost coverage.
  • Overall coverage decreased (-0.6%) to 85.613%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/threadsafe.jl 0 6 0.0%
src/varinfo.jl 82 93 88.17%
src/abstract_varinfo.jl 41 53 77.36%
Files with Coverage Reduction New Missed Lines %
src/utils.jl 1 75.24%
src/sampler.jl 2 92.54%
src/model.jl 3 81.67%
src/selector.jl 3 42.86%
src/simple_varinfo.jl 8 80.93%
src/abstract_varinfo.jl 9 76.27%
src/threadsafe.jl 10 54.24%
src/varinfo.jl 31 81.99%
Totals Coverage Status
Change from base Build 12929652463: -0.6%
Covered Lines: 3743
Relevant Lines: 4372

💛 - Coveralls

Copy link

codecov bot commented Jan 16, 2025

Codecov Report

Attention: Patch coverage is 90.69767% with 16 lines in your changes missing coverage. Please review.

Project coverage is 85.53%. Comparing base (af65bb0) to head (71980ba).

Files with missing lines Patch % Lines
src/abstract_varinfo.jl 84.90% 8 Missing ⚠️
src/threadsafe.jl 33.33% 4 Missing ⚠️
src/varinfo.jl 95.69% 4 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##           release-0.35     #780      +/-   ##
================================================
- Coverage         86.16%   85.53%   -0.64%     
================================================
  Files                36       36              
  Lines              4301     4376      +75     
================================================
+ Hits               3706     3743      +37     
- Misses              595      633      +38     

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

@mhauru mhauru changed the title Remove selector stuff from VarInfo tests Remove selector stuff from VarInfo tests and link/invlink Jan 23, 2025
@mhauru mhauru marked this pull request as ready for review January 23, 2025 13:53
@mhauru mhauru requested review from sunxd3 and penelopeysm January 23, 2025 15:01
@mhauru mhauru marked this pull request as draft January 23, 2025 15:18
@mhauru
Copy link
Member Author

mhauru commented Jan 23, 2025

Sorry, spoke too soon.

@mhauru mhauru marked this pull request as ready for review January 23, 2025 16:04
@mhauru
Copy link
Member Author

mhauru commented Jan 23, 2025

Okay, we are back.

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