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
post/models/upload-custom
Response
Successful Response
Changes
No recorded changes to this endpoint across all 1 revision of this API.