Skip to content

Add support for more Distributions#44

Merged
juliohm merged 7 commits into
mainfrom
distributions
Jun 13, 2026
Merged

Add support for more Distributions#44
juliohm merged 7 commits into
mainfrom
distributions

Conversation

@juliohm

@juliohm juliohm commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@codecov

codecov Bot commented Jun 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9cc203a) to head (d90d886).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #44   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines           76       108   +32     
=========================================
+ Hits            76       108   +32     

☔ View full report in Codecov by Harness.
📢 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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR expands Colorfy’s Distributions.jl integration by adding specialized color representations for additional distribution types and extending test coverage to validate the new behavior.

Changes:

  • Updated the Distributions extension to support Normal, Bernoulli, Categorical, plus a heterogeneous-distribution fallback.
  • Switched the Normal mapping to use entropy-derived transparency (instead of scale) and added entropy-based transparency tests for discrete distributions.
  • Added tests for heterogeneous distribution vectors and ensured missing values continue to map to transparent.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
ext/ColorfyDistributionsExt.jl Adds new repr methods for multiple distributions and a fallback for vectors of distributions.
test/runtests.jl Extends the Distributions testset to cover Normal/Bernoulli/Categorical, heterogeneous vectors, and missing handling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ext/ColorfyDistributionsExt.jl
Comment thread ext/ColorfyDistributionsExt.jl
Comment thread ext/ColorfyDistributionsExt.jl
Comment thread test/runtests.jl Outdated
juliohm and others added 5 commits June 13, 2026 09:46
@juliohm juliohm merged commit 7afc2b0 into main Jun 13, 2026
8 checks passed
@juliohm juliohm deleted the distributions branch June 13, 2026 14:10
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