Upload a custom PyBaMM model JSON file
Upload a custom PyBaMM model from a serialized JSON file.
The model JSON is stored compressed (zstd) directly in the custom_model_data column. Custom models are identified by having non-null custom_model_data.
Non-JSON-compliant values (Infinity, -Infinity, NaN) are sanitized to strings before storing to ensure the JSON can be parsed by JavaScript.
Parameters
name : str Name for the custom model description : str, optional Optional description for the model file : UploadFile The PyBaMM serialized model JSON file
Returns
Model The created model record
Body
Response
Successful Response
Model representing a model as returned by the API (without config).
The name of the model.
The unique identifier for the model.
The ID of the user who created the model.
The ID of the organization this model belongs to.
Timestamp of when the model was created.
Timestamp of when the model was last updated.
Check if this is a custom model (has compressed model data).
An optional description for the model.
PyBaMM version used for this model. If not provided, will be read from pybamm.version.
Model chemistry kind: 'lithium_ion' (default — assumes pybamm lithium-ion conventions), 'lithium_sulfur', 'ecm', or 'generic' (no chemistry-specific enrichment).
lithium_ion, lithium_sulfur, ecm, generic Email of the user who created the model.