Skip to content

Commit 984561c

Browse files
changes to cartrepr_from_matmul to handle single locations and multiple obstimes
1 parent 307382d commit 984561c

File tree

1 file changed

+1
-1
lines changed
  • astropy/coordinates/builtin_frames

1 file changed

+1
-1
lines changed

astropy/coordinates/builtin_frames/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def cartrepr_from_matmul(pmat, coo, transpose=False):
4949
if pmat.shape[-2:] != (3, 3):
5050
raise ValueError("tried to do matrix multiplication with an array that "
5151
"doesn't end in 3x3")
52-
if coo.isscalar:
52+
if coo.isscalar and pmat.shape[0] == 1:
5353
# a simpler path for scalar coordinates
5454
if transpose:
5555
pmat = pmat.T

0 commit comments

Comments
 (0)