From 36f87f225e44201c8a5b938cd448a9646428b010 Mon Sep 17 00:00:00 2001 From: Thomas Vandal Date: Sat, 28 Oct 2023 15:42:12 -0400 Subject: [PATCH] Fix typo in PyTensor shape explanation --- src/exoplanet_core/pymc/ops.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/exoplanet_core/pymc/ops.py b/src/exoplanet_core/pymc/ops.py index 2c30efc..a85481e 100644 --- a/src/exoplanet_core/pymc/ops.py +++ b/src/exoplanet_core/pymc/ops.py @@ -146,7 +146,7 @@ def make_node(self, b, r): # The other option is to use `x.type.shape + (3,)` # Ref: https://pytensor.readthedocs.io/en/latest/library/tensor/basic.html#pytensor.tensor.TensorType pt.tensor( - # PyTensor internally converts True to None and False to 1 + # PyTensor internally converts True to 1 and False to None shape=tuple(x.broadcastable) + (False,), dtype=x.dtype, ) @@ -219,7 +219,7 @@ def make_node(self, a, e, cosw, sinw, cosi, sini, L): # The other option is to use `in_args[0].type.shape` # Ref: https://pytensor.readthedocs.io/en/latest/library/tensor/basic.html#pytensor.tensor.TensorType pt.tensor( - # PyTensor internally converts True to None and False to 1 + # PyTensor internally converts True to 1 and False to None shape=tuple(in_args[0].broadcastable), dtype="int32", ),