Skip to content

Add show_stack(::AbstractContext) #909

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add show_stack(::AbstractContext) #909

wants to merge 1 commit into from

Conversation

penelopeysm
Copy link
Member

@penelopeysm penelopeysm commented May 3, 2025

The docstring says it all. Basically this is a method I've been wanting for ages and I finally decided to implement it after realising that GibbsContext contains a complete VarInfo inside it and it's impossible to parse the output of @show context. Obviously I could just run this myself every time I needed it, but I thought it might be useful enough to be added to DynamicPPL itself, hence the PR.

Not even sure if this warrants a patch bump + release, opinions are welcome.

Copy link

codecov bot commented May 3, 2025

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 84.92%. Comparing base (e75fd1e) to head (db1f96c).

Files with missing lines Patch % Lines
src/contexts.jl 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #909      +/-   ##
==========================================
- Coverage   85.01%   84.92%   -0.09%     
==========================================
  Files          35       35              
  Lines        3924     3928       +4     
==========================================
  Hits         3336     3336              
- Misses        588      592       +4     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 14815463313

Details

  • 0 of 4 (0.0%) changed or added relevant lines in 1 file are covered.
  • 17 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.3%) to 84.76%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/contexts.jl 0 4 0.0%
Files with Coverage Reduction New Missed Lines %
src/model.jl 1 85.83%
src/threadsafe.jl 16 55.05%
Totals Coverage Status
Change from base Build 14706709520: -0.3%
Covered Lines: 3326
Relevant Lines: 3924

💛 - Coveralls

@coveralls
Copy link

coveralls commented May 3, 2025

Pull Request Test Coverage Report for Build 14815463313

Details

  • 0 of 4 (0.0%) changed or added relevant lines in 1 file are covered.
  • 17 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.09%) to 85.015%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/contexts.jl 0 4 0.0%
Files with Coverage Reduction New Missed Lines %
src/model.jl 1 85.83%
src/threadsafe.jl 16 55.05%
Totals Coverage Status
Change from base Build 14706709520: -0.09%
Covered Lines: 3336
Relevant Lines: 3924

💛 - Coveralls

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