Skip to content

Feature request: JSON serialization of models? #570

Open
@sdwfrost

Description

@sdwfrost

I'm working with a platform to run models in the cloud using GitHub Actions (see here, which takes JSON inputs, and expects JSON outputs. Here is an example for a simple DifferentialEquations model (as a Typescript interface, which gets converted into a JSON schema):

export interface ModelInput {
  p: number[]
  u0: number[]
  tspan: number[]
}

where p is an array of parameters, u0 is an array of initial conditions, and tspan is the time over which the simulation is run. At the moment, I read in JSON files to access parameters, etc., but it would be great to have (at least for experimentation) a JSON representation of the ModelingToolkit model itself. I know I could simply include the stringified function as an argument, but that isn't very readable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions