ionworks-schema, submit it through the API client, and read
the typed result.
This fits one direction. For lithiation/delithiation hysteresis, set
direction on iws.models.MSMRHalfCellModelOptions and give each direction its
own objective; only the combined single-plot overlay has no schema equivalent.
This example runs on synthetic sample data bundled with
ionworks-schema, so
you can copy it and run it as-is. Swap iws.example_data(...) for your own
export, or read a measurement from the platform with
client.cell_measurement. Plotting the fit needs ionworks-schema[plot].