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 samplers from VarInfo - indexing #793

Merged
merged 45 commits into from
Feb 5, 2025

Conversation

mhauru
Copy link
Member

@mhauru mhauru commented Jan 30, 2025

Part two of removing samplers from the internals of VarInfo, this time addressing getindex, setindex, eltype, keys, and functions related to them. Also picking up small bits that should have been done in the previous PR, and fixing at least one small, unrelated bug.

This one is hopefully more straight-forward, in that it mostly just removes things, very little new code is introduced.

mhauru and others added 30 commits January 16, 2025 16:14
Copy link

codecov bot commented Jan 30, 2025

Codecov Report

Attention: Patch coverage is 71.69811% with 15 lines in your changes missing coverage. Please review.

Please upload report for BASE (release-0.35@c5f2f7a). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/varinfo.jl 58.82% 7 Missing ⚠️
src/compiler.jl 80.00% 3 Missing ⚠️
src/sampler.jl 81.81% 2 Missing ⚠️
src/abstract_varinfo.jl 66.66% 1 Missing ⚠️
src/simple_varinfo.jl 50.00% 1 Missing ⚠️
src/threadsafe.jl 0.00% 1 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##             release-0.35     #793   +/-   ##
===============================================
  Coverage                ?   85.78%           
===============================================
  Files                   ?       36           
  Lines                   ?     4207           
  Branches                ?        0           
===============================================
  Hits                    ?     3609           
  Misses                  ?      598           
  Partials                ?        0           

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

@coveralls
Copy link

coveralls commented Jan 30, 2025

Pull Request Test Coverage Report for Build 13055998519

Details

  • 38 of 53 (71.7%) changed or added relevant lines in 8 files are covered.
  • 42 unchanged lines in 5 files lost coverage.
  • Overall coverage decreased (-12.2%) to 73.203%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/abstract_varinfo.jl 2 3 66.67%
src/simple_varinfo.jl 1 2 50.0%
src/threadsafe.jl 0 1 0.0%
src/sampler.jl 9 11 81.82%
src/compiler.jl 12 15 80.0%
src/varinfo.jl 10 17 58.82%
Files with Coverage Reduction New Missed Lines %
src/contexts.jl 1 31.41%
src/sampler.jl 1 91.18%
src/model.jl 5 80.0%
src/varinfo.jl 14 82.62%
src/threadsafe.jl 21 50.47%
Totals Coverage Status
Change from base Build 13052659735: -12.2%
Covered Lines: 3065
Relevant Lines: 4187

💛 - Coveralls

@coveralls
Copy link

Pull Request Test Coverage Report for Build 13055998519

Details

  • 38 of 53 (71.7%) changed or added relevant lines in 8 files are covered.
  • 42 unchanged lines in 5 files lost coverage.
  • Overall coverage increased (+0.5%) to 85.867%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/abstract_varinfo.jl 2 3 66.67%
src/simple_varinfo.jl 1 2 50.0%
src/threadsafe.jl 0 1 0.0%
src/sampler.jl 9 11 81.82%
src/compiler.jl 12 15 80.0%
src/varinfo.jl 10 17 58.82%
Files with Coverage Reduction New Missed Lines %
src/contexts.jl 1 31.41%
src/sampler.jl 1 91.18%
src/model.jl 5 80.0%
src/varinfo.jl 14 82.62%
src/threadsafe.jl 21 50.47%
Totals Coverage Status
Change from base Build 13052659735: 0.5%
Covered Lines: 3609
Relevant Lines: 4203

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jan 30, 2025

Pull Request Test Coverage Report for Build 13116927069

Details

  • 38 of 53 (71.7%) changed or added relevant lines in 8 files are covered.
  • 42 unchanged lines in 5 files lost coverage.
  • Overall coverage increased (+0.5%) to 85.867%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/abstract_varinfo.jl 2 3 66.67%
src/simple_varinfo.jl 1 2 50.0%
src/threadsafe.jl 0 1 0.0%
src/sampler.jl 9 11 81.82%
src/compiler.jl 12 15 80.0%
src/varinfo.jl 10 17 58.82%
Files with Coverage Reduction New Missed Lines %
src/contexts.jl 1 31.41%
src/sampler.jl 1 91.18%
src/model.jl 5 80.0%
src/varinfo.jl 14 82.62%
src/threadsafe.jl 21 50.47%
Totals Coverage Status
Change from base Build 13052659735: 0.5%
Covered Lines: 3609
Relevant Lines: 4203

💛 - Coveralls

@mhauru mhauru marked this pull request as ready for review January 30, 2025 16:14
@mhauru mhauru requested review from penelopeysm and sunxd3 January 30, 2025 16:14
Copy link
Member

@penelopeysm penelopeysm left a comment

Choose a reason for hiding this comment

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

I've only skimmed, so these are general impressions. I'll double check the deleted code in more detail at a later date, but at first glance it all seemed fine (I guess that's a literal LGTM).

src/compiler.jl Outdated Show resolved Hide resolved
src/varinfo.jl Show resolved Hide resolved
src/varinfo.jl Show resolved Hide resolved
Copy link
Member

@sunxd3 sunxd3 left a comment

Choose a reason for hiding this comment

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

It looks good to me!

src/compiler.jl Show resolved Hide resolved
Copy link
Member

@penelopeysm penelopeysm left a comment

Choose a reason for hiding this comment

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

Finally got to take a second look at the removed code - it all looks great!

@mhauru mhauru merged commit 1366440 into release-0.35 Feb 5, 2025
16 checks passed
@mhauru mhauru deleted the mhauru/remove-selectors-indexing branch February 5, 2025 11:23
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.

4 participants