Overview
pyCAPS is a Python extension module to interact with Computational Aircraft Prototype Syntheses (CAPS) routines in the Python environment. Written in Cython, pyCAPS natively handles all type conversions/casting, while logically grouping CAPS function calls together to simplify a user's experience. Additional functionality not directly available through the CAPS API (such has saving a geometric view) is also provided.
An overview of the basic pyCAPS functionality is provided in Getting Started.
Key differences between pyCAPS and CAPS
- Manipulating the "owner" information for CAPS objects isn't currently supported
- CAPS doesn't natively support an array of string values (an array of strings is viewed by CAPS as a single concatenated string), however pyCAPS does. If a list of strings is provided this list is concatenated, separated by a ';' and provided to CAPS as a single string. The number of rows and columns are correctly set to match the original list. If a string is received from CAPS by pyCAPS and the rows and columns are set correctly it will be unpacked correctly considering entries are separated by a ';'. (Important) If the rows and columns aren't set correctly and the string contains a ';', the data will likely be unpacked incorrectly or raise an indexing error. (Note: not available when setting attributes on objects)