anise icon indicating copy to clipboard operation
anise copied to clipboard

Feature request: a way to list furnished kernel filenames

Open translunar opened this issue 5 months ago • 2 comments

I can't find a way to list the kernels in an Almanac. Is there any way to do this? If not, can there be?

I know it's possible to directly load the dhall, but it'd be nice to not have to add another python package.

translunar avatar Oct 29 '25 17:10 translunar

That isn't exposed as-is, but you can call almanac.describe() and it will list the path of the SPK and BPC kernels you've loaded along with a lot more information about them. It isn't possible to list the name of the planetary/location/quaternion kernels because these are currently loaded directly as bytes and only one such kernel can be loaded at any one time.

ChristopherRabotin avatar Oct 29 '25 17:10 ChristopherRabotin

For my reference, this ticket will also add the ability to load multiple ANISE kernels at once. Then, from an Almanac, there should be a way to build the related MetaAlmanac directly, e.g. my_almanac.to_meta() , which would return a MetaAlmanac (so the user can call dumps on it). There should also be a my_almanac.list_kernels(spk=True, ...) that behaves like describe but returns the list of the kernels loaded, optionally filtering out specific types.

ChristopherRabotin avatar Nov 03 '25 06:11 ChristopherRabotin