Closed STBadman closed 4 years ago
Having to use setup_spice
is a deliberate change made to solve some circular import problems between heliopy.spice
and heliopy.data.spice
. It is documented, but the documentation builds are currently failing...
For the second issue, that's odd, I'm guessing there just isn't any ephemeris data in the kernel for the gravity assist?
I think I found a way round circular imports in #899. Do you think the PSP ephemeris issue is something wrong with HelioPy, or just a problem with the kernel?
I pulled this commit and both issues went away. I tested the 2nd issue in the current master branch and found that it went away when I explicitly loaded the planet_trajectories
kernel or ran setup_spice
- I think that means the PSP trajectory requires Venus ephemerides during the gravity assist.
Either way, by having setup_spice
happen implicity I think you've solved it
I just upgraded to v 0.11 and I noticed my scripts broke everywhere I was using heliopy.spice, with the spice error that leap seconds were not loaded. Things work again when I do
or
Was there a change where setup_spice() used to be called automatically?
This also seems to unfortunately break the RTD spice example :
(I also verified the example ran after manually running setup_spice and found a new error where no ephemeris data is loaded for PSP for october 3 6am-12am. It seems in the newest spice kernel the trajectory is not defined in this time interval which corresponds to PSP's first venus gravity assist. If we change the cadence of the list of datatimes or pop those time stamps that should fix that)