Skip to content

Fix dim lengths created from coords or ConstantData #5751

Closed
@michaelosthege

Description

@michaelosthege

In this comment we proposed to make dimensions created from coords non-resizeable, because it would prevent users from running into issues like #5181.

What needs to be done

In

pymc/pymc/model.py

Lines 1070 to 1076 in dd23c90

def add_coord(
self,
name: str,
values: Optional[Sequence] = None,
*,
length: Optional[Variable] = None,
):
the set_coord method could take another kwarg resizable: bool=False or fixed: bool=True.

Then we can actively turn off re-sizing of dimensions that are created from ConstantData or coords.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions