From f05a4d4414738c3ed6962321c1e80bfb554b1440 Mon Sep 17 00:00:00 2001 From: Felipe Tampier Date: Wed, 14 Jan 2026 21:36:33 +0200 Subject: [PATCH] Type check bugfix Avoid unhashable type error in keplerian2ecef when "sv" is in sv. This error might show up when parsing rinex files obtained from earthscope. This optimization is not tested for in unit tests but this type check is a sure fix. I don't know in what situation this optimization helps. --- src/georinex/keplerian.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/georinex/keplerian.py b/src/georinex/keplerian.py index 816bc1d..e61a4c9 100644 --- a/src/georinex/keplerian.py +++ b/src/georinex/keplerian.py @@ -21,7 +21,7 @@ def keplerian2ecef( http://web.cecs.pdx.edu/~ssp/Reports/2006/Monaghan.pdf """ - if "sv" in sv and sv["sv"] in {"R", "S"}: + if "sv" in sv and sv["sv"].__hash__ is not None and sv["sv"] in {"R", "S"}: return sv["X"], sv["Y"], sv["Z"] # sv = sv.dropna(dim='time', how='all')