Skip to content

Support programatic leap seconds #5783

Closed

Description

@eteq

Currently, there's no way for astropy to programmatically change what the leap-seconds are, because the leap seconds are accessed through ERFA. This is problematic because it means when there's a new leap second we have to do a bugfix release.

The fix in Astropy itself would be pretty easy, as it can be extracted from the IERS files that we already are using for DUT1 and such. But the non-trivial part is updating ERFA to have an interface for setting the leap second - see liberfa/erfa#43 for discussion on that.

cc @mhvk

Activity

  1. added this to the v3.2 milestone on Dec 3, 2018
  2. eteq commented on Dec 3, 2018

    @eteq
    MemberAuthor

    At the astropy coordination meeting 2018, @adrn, @timj, @stargaser, et al. decided this is a good thing to prioritize for 3.2 (which means working on the liberfa fix asap). Hence the milestoning above.

  3. bsipocz commented on Apr 17, 2019

    @bsipocz
    Member

    ping @eteq - would you say at this point it's realistic to remilestone for 4.0?

  4. modified the milestones: v3.2, v4.0 on Apr 19, 2019
  5. mhvk commented on Oct 4, 2019

    @mhvk
    Contributor

    After discussion with @eteq: The plan now is to add the ability @jwoillez created to load custom leap seconds into erfa's dat.c into astropy's version, so that we can experiment with it - in particular update it as needed based on the IERS tables (from IERS_Auto by default). Then, with the interface worked out, we can push it back up to liberfa so that it is more generic and can be used elsewhere.

  6. bsipocz commented on Oct 5, 2019

    @bsipocz
    Member

    Is this now fixed with the ERFA update?

  7. mhvk commented on Oct 5, 2019

    @mhvk
    Contributor

    @bsipocz - no, not yet, we now have in principle the ability to update the leap second table, but we still need to put in place the machinery to get that updated table.

  8. astrofrog commented on Oct 30, 2019

    @astrofrog
    Member

    Was this done in #9365?

  9. mhvk commented on Oct 30, 2019

    @mhvk
    Contributor

    Yes, fixed!

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions