API Reference

Model code imports the modeling API from cimba.sim and a few top-level helpers from cimba. The pages below group the public surface by area.

A model is declared as a Model subclass whose annotated fields describe the shape of one trial. Process behaviour is written as ordinary Python functions registered with @model.process and @model.collect, and experiments are built with model.experiment(...) and run with Experiment.run().

Top-level package

cimba.use_threads(n)

Return the number of worker threads Cimba will use.

The upstream library always runs one worker thread per logical CPU core. The n argument is accepted for API compatibility (0 means all cores) but is not passed through to the C library yet.

Parameters:

n (int)

Return type:

int

cimba.version()

Return the cimba library version string.

Return type:

str