client.simulation.protocol call, with a study_id so the run shows up on that study’s Simulations tab.
Install and authenticate first:
pip install ionworks-api and set IONWORKS_API_KEY and IONWORKS_PROJECT_ID. See the Python API client page.- This is the same call as protocol simulations; the
study_idfiles the run under a study, so it appears on that study’s Simulations tab in Studio. parameterized_modeltakes the id of a model you built (see Upload a model), or an inline quick model like{"capacity": 5.0, "chemistry": "NMC/Graphite"}for a throwaway run.- Read results with
get_result(...)—.time_series,.steps,.metrics. To sweep parameters across many runs, useprotocol_batch(see Run protocol simulations).