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

[WIP] Cython spiceypy prototype #464

Open
wants to merge 87 commits into
base: main
Choose a base branch
from
Open

[WIP] Cython spiceypy prototype #464

wants to merge 87 commits into from

Conversation

AndrewAnnex
Copy link
Owner

Prototype of Cython based interface to CSPICE. Links to the existing CSPICE shared library so is able to work along side the existing spiceypy interface allowing gradual development of features. Current focus will be to provide faster vectorized functions first and then consider what makes sense to cythonize from that point.

This is very much a work in process, as I am still learning cython best practices, and changes to python packaging may be outpacing cython's development and documentation.

Current speedups are modest for vectorized functions, about 1.5-1.7 times faster than pure python versions. This may be due to unavoidable overhead in certain portions such as dealing with strings.

This PR will probably be open for a while until enough of the issues around cross platform compilation, docstrings, and cython usage improvements are made.

suggestions are welcome!

I think I may need to transistion to having two pyproject.tomls for
spiceypy and cyice which would require some changes to the layout and
possibly duplication of get_cspice.py (or make that a third project that
all others depend on).
…d examples of list of strings as inputs and outputs
…have to think about how to have good usage of it
…with the cspice src dir so that jobs don't have to download cspice src/compile the cspice lib
…me badness happening with get_spice/setup.py/pyproject.toml
…ure why thats an issue at all though so maybe wheel isn't properly packaging the pyd file
…name (both file and internal name). Updating to libcspice internally for windows
…all, need to work out a way to have a temp dir that's consistent between running get_spice and defining the cython extension
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.

None yet

2 participants