Skip to content
This repository was archived by the owner on Oct 14, 2023. It is now read-only.
This repository was archived by the owner on Oct 14, 2023. It is now read-only.

Unit conversion error when using newer astroquery #1229

Closed

Description

@astrojuanlu

I think we broke the docs after I merged some of the recent pull requests: either #1184 or #1190, both by @Yash-10.

Here's the latest failed build:

https://readthedocs.org/projects/poliastro/builds/13776407/

UnitConversionError: Can only apply 'add' function to quantities with compatible dimensions

there's a units problem in the NEOs notebook.

Activity

  1. astrojuanlu commented on May 16, 2021

    @astrojuanlu
    MemberAuthor

    Both Read the Docs and our py38_online_test check have failed, see for example https://github.com/poliastro/poliastro/runs/2594411686.

  2. jtegedor commented on May 16, 2021

    @jtegedor

    I found the same while doing something else, I do not think it is related specifically to those PR.

    After doing the changes here #1228, docs and pytest work again.

  3. astrojuanlu commented on May 16, 2021

    @astrojuanlu
    MemberAuthor

    Oh, now I know what's happening! The from_sbdb old code looked weird to me, but I remembered it had to do with some weird astroquery thing. I checked their release notes and saw that astropy/astroquery#2011 has been released, hence the jplsbdb service now returns astropy quantities. It makes total sense to merge #1228, doing it now.

  4. astrojuanlu commented on May 16, 2021

    @astrojuanlu
    MemberAuthor

    Closed in #1228 🚀

  5. changed the title [-]Docs are broken[/-] [+]Unit conversion error when using newer astroquery[/+] on May 30, 2021
  6. astrojuanlu commented on May 30, 2021

    @astrojuanlu
    MemberAuthor

    For future readers: Until we release poliastro 0.15.1 with a fix for this, a solution is to downgrade astroquery:

    pip install "astroquery<0.4.2"
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions