Allow np.ndarray inputs for subpnt, subslr, and pxform #435
Labels
beginners welcome
issues that are good for beginners
enhancement
help wanted
not a bug
this issue is not a bug
I often find myself writing
np.vectorize
calls to allow SpiceyPy functions to take vector inputs. I'd like to see this moved into SpiceyPy itself.AFAIK, all array input handling is done on the Python side as CSPICE functions never accept array inputs. An example is
spkezr
, which loops through the array input values in Python, iteratively callingspkezr_c
. However, not all wrappers have implemented this convenience.There are many other routines which would benefit from this type of array input handling. As a start, I suggest
pxform
,subslr
, andsubpnt
, possibly accepting user suggestions for others.An alternative implementation could be to write a C extension library that performs these loops in C rather than python to improve performance but that would probably add a lot of additional installation and maintenance headache for @AndrewAnnex.
The text was updated successfully, but these errors were encountered: