Custom Scripts

Pictorus currently supports in-app Python scripting that executes prior to device deploys or simulation runs. This pre-compile scripting feature allows advanced engineering analysis and variable declaration, which is then passed along to the Rust compiler.

Create Script

This feature is particularly useful for declaring app variables before compiling the core simulation or on-device code. Users can leverage Python libraries such as NumPy or Pandas to handle pre-compile functions.

For instance, here we are utilizing a Python script to tune Kalman filter matrices that are then run in a position-estimator app:

Kalman filter

Additional Notes

It's important to recognize that Python scripts are not executed at runtime. All Pictorus apps are 100% compiled Rust.

Currently, plotting and other visualizations are not enabled. Post-processing scripts which will include visualizations are currently in development.