Giter VIP home page Giter VIP logo

Comments (4)

orionlee avatar orionlee commented on July 3, 2024 1

@christinahedges The sort order change was slipped in in PR #1380 . I wonder if the change could break other people's codes (in addition to mine).

My actual use case is to download the lightcurves of a given TIC for all observation time, with the best available product/author for each sector (use case in #1048).

The change makes the resulting SearchResult / correspond LightCurveCollection no longer orders chronologically. I have to explicitly re-sort the SearchResult to compensate it.

from lightkurve.

martindevora avatar martindevora commented on July 3, 2024

I'm experiencing the same and it is breaking my code too.

from lightkurve.

christinahedges avatar christinahedges commented on July 3, 2024

@orionlee so MAST uploaded a few new HLSPs that broke other stuff in lightkurve and this was my attempt at fixing it. I'm working on 2.5.0dev right now with a much better fix.

Let me take a crack at finishing this up and let's chat on that PR about what to do with v2.4.2 and find the best solution

from lightkurve.

orionlee avatar orionlee commented on July 3, 2024

christinahedges: I have subscribed to PR #1383 for the new new HLSPs. Ping me when you're ready.


In the meantime, I use a helper to resort the SearchResult chronologically in my codes.

import lightkurve as lk

def _sort_chronologically(sr: lk.SearchResult):
    res = lk.SearchResult(sr.table.copy())
    res.table.sort(["distance", "year", "mission", "sort_order", "exptime"])
    return res

from lightkurve.

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.