We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2c46a7 commit eeb4e12Copy full SHA for eeb4e12
pymc/sampling/forward.py
@@ -795,10 +795,17 @@ def sample_posterior_predictive(
795
constant_coords = set()
796
for dim, coord in trace_coords.items():
797
current_coord = model.coords.get(dim, None)
798
+ current_length = model.dim_lengths.get(dim, None)
799
+ if hasattr(current_length, 'eval'):
800
+ current_length = current_length.eval()
801
if (
802
current_coord is not None
803
and len(coord) == len(current_coord)
804
and np.all(coord == current_coord)
805
+ ) or (
806
+ # Coord was defined without values (only length)
807
+ current_coord is None
808
+ and len(coord) == current_length
809
):
810
constant_coords.add(dim)
811
0 commit comments