Giter Site home page Giter Site logo

Comments (8)

sbailey avatar sbailey commented on September 3, 2024

earlier versions of astropy are unavailable in conda for python 3.9, thus requiring us to stick to python 3.8 until this issue is fixed

from desisurvey.

sbailey avatar sbailey commented on September 3, 2024

@weaverba137 could you take a look at this astropy erfa issue and suggest a workaround that works with astropy 4.2 and 4.0.x? This is a blocking factor for upgrading to astropy 4.2 for the next software release. Although that isn't strictly required, it would be preferable to catch up with that instead of staying on 4.0.x and we'll need to address this at some point. In the meantime, maintaining compatibility with 4.0.x is important to support the KPNO operations environment which uses the the next tile selector in desisurvey.

from desisurvey.

weaverba137 avatar weaverba137 commented on September 3, 2024

I'll take a look, but I'm wiped out for the day. I don't think this is a hard problem. I believe there is now a pyerfa module, no longer part of astropy itself, that has to be imported instead. There shouldn't be any API changes, just an import change.

from desisurvey.

weaverba137 avatar weaverba137 commented on September 3, 2024

For reference: https://docs.astropy.org/en/stable/whatsnew/4.2.html#removed-erfa-module

I'll start testing this momentarily.

from desisurvey.

weaverba137 avatar weaverba137 commented on September 3, 2024

@dkirkby, what does astropy._erfa.core actually do in desisurvey.utils? As far as I can tell, it is imported but not used! If it is completely unused, then this could be a particularly easy fix.

from desisurvey.

dkirkby avatar dkirkby commented on September 3, 2024

@weaverba137 This is the commit where I added this import: 32fdde1

It was needed for the definition of astropy._erfa.core.ErfaWarning used in freeze_iers but that code now lives in desiutils.iers.

from desisurvey.

weaverba137 avatar weaverba137 commented on September 3, 2024

Aha, so this may need to be fixed in desiutil then. Good to know.

from desisurvey.

weaverba137 avatar weaverba137 commented on September 3, 2024

In fact, desiutil already handles this correctly: https://github.com/desihub/desiutil/blob/9dd77fe24f620d9282d4211fa881763c307ed890/py/desiutil/iers.py#L126

So I think the solution is just to remove the unused import statement.

from desisurvey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.