Skip to content

Commit

Permalink
Fix typo in PyTensor shape explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
vandalt committed Oct 28, 2023
1 parent 8021434 commit 36f87f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/exoplanet_core/pymc/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down Expand Up @@ -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",
),
Expand Down

0 comments on commit 36f87f2

Please sign in to comment.