Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add domain validity map for SPK and BPC #229

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

ChristopherRabotin
Copy link
Member

Summary

As a user of ANISE, I'm interested in programmatically knowing what NAIF IDs are currently loaded for SPK and BPC files, along with their validity. This allows me to query it off the bat without any manual step.

Architectural Changes

No change

New Features

  • translate_to_parent is now exposed to Python
  • spk_domains and bpc_domains are new functions, available in Rust and Python.

Improvements

No change

Bug Fixes

No change

Testing and validation

Detail the changes in tests, including new tests and validations

Documentation

This PR does not primarily deal with documentation changes.

@ChristopherRabotin
Copy link
Member Author

Example dbg! on spk_domains:

[anise/tests/ephemerides/parent_translation_verif.rs:31:5] almanac.spk_domains().unwrap() = {
    301: (
        1849-12-26T00:00:00.000000211 ET,
        2150-01-22T00:00:00.000000508 ET,
    ),
    10: (
        1849-12-26T00:00:00.000000211 ET,
        2150-01-22T00:00:00.000000508 ET,
    ),
    9: (
        1849-12-26T00:00:00.000000211 ET,
        2150-01-22T00:00:00.000000508 ET,
    ),
    199: (
        1849-12-26T00:00:00.000000211 ET,
        2150-01-22T00:00:00.000000508 ET,
    ),
    0: (
        2000-01-01T12:00:00.000000011 ET,
        2000-01-01T12:00:00.000000011 ET,
    ),
    8: (
        1849-12-26T00:00:00.000000211 ET,
        2150-01-22T00:00:00.000000508 ET,
    ),
    7: (
        1849-12-26T00:00:00.000000211 ET,
        2150-01-22T00:00:00.000000508 ET,
    ),
    299: (
        1849-12-26T00:00:00.000000211 ET,
        2150-01-22T00:00:00.000000508 ET,
    ),
    1: (
        1849-12-26T00:00:00.000000211 ET,
        2150-01-22T00:00:00.000000508 ET,
    ),
    4: (
        1849-12-26T00:00:00.000000211 ET,
        2150-01-22T00:00:00.000000508 ET,
    ),
    2: (
        1849-12-26T00:00:00.000000211 ET,
        2150-01-22T00:00:00.000000508 ET,
    ),
    3: (
        1849-12-26T00:00:00.000000211 ET,
        2150-01-22T00:00:00.000000508 ET,
    ),
    5: (
        1849-12-26T00:00:00.000000211 ET,
        2150-01-22T00:00:00.000000508 ET,
    ),
    6: (
        1849-12-26T00:00:00.000000211 ET,
        2150-01-22T00:00:00.000000508 ET,
    ),
    399: (
        1849-12-26T00:00:00.000000211 ET,
        2150-01-22T00:00:00.000000508 ET,
    ),
}
test ephemerides::parent_translation_verif::de400_domain ... ok

@ChristopherRabotin ChristopherRabotin merged commit 3a2868a into master Apr 11, 2024
18 of 21 checks passed
@ChristopherRabotin ChristopherRabotin deleted the python-quick/expose-parent-translation branch May 31, 2024 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant