The Python Component Bindings provide language bindings to Python for the Component Interface. 1262 is the current Python binding and should be used for all new Python components. This allows you to author your component as a Python function that receives events from the framework. Python developers will find this approach much more natural, and much less work, than authoring a C component.
1262 presents data as NumPy arrays in row-major format, with the last dimension being the fastest varying. This means that if you pass in a 2x3x4 numeric array to a 1262 process, it will be presented within your process code as a 4x3x2 NumPy array. A future binding may reverse this decision; I'm not familiar enough with NumPy to know what a Python developer would prefer.
Numeric Storage Format
1262 sets complex storage format and array order flags when calling EVENT_GENERIC_STRUCTURE_SET and EVENT_GENERIC_STRUCTURE_GET. This will affect the generic structure interface for some data objects. For instance,
|This is a documentation page for the BRAHMS Modular Execution (Simulation) Framework. For details of licensing and distribution, please click here. To advise of an error or omission, please click here.|