Skip to content

Keplerian orbits not being computed on datasets anymore #107

@mauriciodev

Description

@mauriciodev

If you read the nav data using georinex and pass it to keplerian.py, the set comparison doesn't work because sv is a dataframe, not a string. I checked the test suit and it seems that it's using a dict instead of a xarray object, so that's why it passes.
Code works as expected if we run:
sed -i -e 's/sv["sv"] in {"R", "S"}/sv["sv"] in ("R", "S")/g' /usr/local/lib/python3.10/dist-packages/georinex/keplerian.py

Please revert commit c3644ad on src/georinex/keplerian.py>
- if "sv" in sv and sv["sv"] in ("R", "S"):
+ if "sv" in sv and sv["sv"] in {"R", "S"}:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions