Skip to content

Conversation

williambdean
Copy link
Contributor

@williambdean williambdean commented Jun 24, 2025

Description

Example: plant growth will become plant_growth for the node name but will still be displayed as "plant growth"

Related Issue

Checklist

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

📚 Documentation preview 📚: https://pymc--7835.org.readthedocs.build/en/7835/

@williambdean
Copy link
Contributor Author

williambdean commented Jun 24, 2025

Example rendering :

import pymc as pm

with pm.Model() as model: 
    mu = pm.Normal("plant growth mu")
    sigma = pm.HalfNormal("plant growth sigma")
    pm.Normal("plant growth", mu=mu, sigma=sigma)

print(pm.model_to_mermaid(model))
graph TD
%% Nodes:
plant_growth([plant growth ~ Normal])
plant_growth@{ shape: rounded }
plant_growth_mu([plant growth mu ~ Normal])
plant_growth_mu@{ shape: rounded }
plant_growth_sigma([plant growth sigma ~ HalfNormal])
plant_growth_sigma@{ shape: rounded }

%% Edges:
plant_growth_mu --> plant_growth
plant_growth_sigma --> plant_growth

%% Plates:
Loading

Copy link

codecov bot commented Jun 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.91%. Comparing base (4271195) to head (a7bbe34).
⚠️ Report is 42 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #7835      +/-   ##
==========================================
+ Coverage   91.58%   92.91%   +1.33%     
==========================================
  Files         107      107              
  Lines       18282    18286       +4     
==========================================
+ Hits        16744    16991     +247     
+ Misses       1538     1295     -243     
Files with missing lines Coverage Δ
pymc/model_graph.py 85.07% <100.00%> (+0.19%) ⬆️

... and 3 files with indirect coverage changes

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

@ricardoV94 ricardoV94 merged commit 3ae5095 into pymc-devs:main Jun 25, 2025
25 checks passed
@ricardoV94 ricardoV94 added the no releasenotes Skipped in automatic release notes generation label Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no releasenotes Skipped in automatic release notes generation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: pm.model_to_mermaid with spaces in variable names

2 participants