Skip to content

fix inference of shape from labels#41751

Merged
vbraun merged 3 commits intosagemath:developfrom
mantepse:growth_diagrams_on_cylindric_shapes
Mar 22, 2026
Merged

fix inference of shape from labels#41751
vbraun merged 3 commits intosagemath:developfrom
mantepse:growth_diagrams_on_cylindric_shapes

Conversation

@mantepse
Copy link
Copy Markdown
Contributor

@mantepse mantepse commented Mar 4, 2026

In the forward case, that is, if filling is given, previously an unspecified shape was only inferred from the filling. However, if labels is given, we can better infer shape from these.

Comment thread src/sage/combinat/growth.py Outdated
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 4, 2026

Documentation preview for this PR (built with commit 7e1d4a1; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

Copy link
Copy Markdown
Collaborator

@tscrim tscrim left a comment

Choose a reason for hiding this comment

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

LGTM modulo a minor function renaming.

Comment thread src/sage/combinat/growth.py Outdated
return (list(shape), [0]*len(shape))

def _process_filling_and_shape(self, filling, shape):
def _process_filling_and_shape(self, filling, shape, labels):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
def _process_filling_and_shape(self, filling, shape, labels):
def _process_filling_shape_labels(self, filling, shape, labels):

Might be a more accurate name given what it does.

Copy link
Copy Markdown
Contributor

@fchapoton fchapoton left a comment

Choose a reason for hiding this comment

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

looks reasonable

vbraun pushed a commit to vbraun/sage that referenced this pull request Mar 21, 2026
sagemathgh-41751: fix inference of shape from labels
    
In the forward case, that is, if `filling` is given, previously an
unspecified `shape` was only inferred from the filling.  However, if
`labels` is given, we can better infer `shape` from these.
    
URL: sagemath#41751
Reported by: Martin Rubey
Reviewer(s): Frédéric Chapoton, Martin Rubey, Travis Scrimshaw
@vbraun vbraun merged commit 062857a into sagemath:develop Mar 22, 2026
25 checks passed
@mantepse mantepse deleted the growth_diagrams_on_cylindric_shapes branch March 23, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants