File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -717,7 +717,7 @@ def get_support_shape(
717
717
shape = to_tuple (shape )
718
718
assert isinstance (shape , tuple )
719
719
inferred_support_shape = at .stack (
720
- [shape [- i - 1 ] - support_shape_offset [- i - 1 ] for i in range ( ndim_supp )]
720
+ [shape [i ] - support_shape_offset [i ] for i in np . arange ( - ndim_supp , 0 )]
721
721
)
722
722
723
723
if inferred_support_shape is None and dims is not None :
@@ -726,15 +726,15 @@ def get_support_shape(
726
726
model = modelcontext (None )
727
727
inferred_support_shape = at .stack (
728
728
[
729
- model .dim_lengths [dims [- i - 1 ]] - support_shape_offset [- i - 1 ] # type: ignore
730
- for i in range ( ndim_supp )
729
+ model .dim_lengths [dims [i ]] - support_shape_offset [i ] # type: ignore
730
+ for i in np . arange ( - ndim_supp , 0 )
731
731
]
732
732
)
733
733
734
734
if inferred_support_shape is None and observed is not None :
735
735
observed = convert_observed_data (observed )
736
736
inferred_support_shape = at .stack (
737
- [observed .shape [- i - 1 ] - support_shape_offset [- i - 1 ] for i in range ( ndim_supp )]
737
+ [observed .shape [i ] - support_shape_offset [i ] for i in np . arange ( - ndim_supp , 0 )]
738
738
)
739
739
740
740
if inferred_support_shape is None :
You can’t perform that action at this time.
0 commit comments