stilt.Model.register#
- Model.register(receptors=None)[source]#
Persist the model’s inputs to the project and return its simulation ids.
Writes
config.yamlandreceptors.csvinto the project store so that workers (local processes, Slurm tasks, Kubernetes pods) can rebuild this model from the root alone. When a work queue is configured, the simulations are enqueued as pending.- Parameters:
receptors (iterable of Receptor, optional) – Receptors to add. They are merged into the project’s existing receptors (deduplicated by id) and the merged set is written. When omitted, the model’s own receptors are persisted — copying the source CSV byte-for-byte when they came from a file.
- Returns:
Simulation ids for the receptors registered by this call.
- Return type: