From 85fc6eae89c67af1ffd98dd8432f63c332b4c457 Mon Sep 17 00:00:00 2001 From: scivision Date: Mon, 20 Nov 2023 15:30:30 -0500 Subject: [PATCH] eci: only compare non-scalar shape --- src/pymap3d/eci.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pymap3d/eci.py b/src/pymap3d/eci.py index a1f1f9a..1ee83e1 100644 --- a/src/pymap3d/eci.py +++ b/src/pymap3d/eci.py @@ -57,7 +57,8 @@ def eci2ecef(x, y, z, time: datetime) -> tuple: z = atleast_1d(z) gst = atleast_1d(greenwichsrt(juliandate(time))) assert x.shape == y.shape == z.shape, f"shape mismatch: x: ${x.shape} y: {y.shape} z: {z.shape}" - assert x.size == gst.size + if gst.size > 1: + assert x.size == gst.size, f"shape mismatch: x: {x.shape} gst: {gst.shape}" eci = column_stack((x.ravel(), y.ravel(), z.ravel())) ecef = empty((x.size, 3))