Skip to content

ERROR: Indexing with parameters is deprecated. Use getp(A, eB) for parameter indexing. #3392

@orebas

Description

@orebas

I had some working software, which stopped working with the above error.
When I google the error, nothing shows up.

General complaint: I find ModelingToolkit is very hard to use because the API changes frequently and sometimes in ways that break code silently. The interface for parameters has changed multiple times in the past two years, which causes a maintenance burden on every downstream package.

Specific complaint: I can't easily find documentation about the above change. It breaks my code and I don't know what version of ModelingToolkit to revert back to. Also, it seems like a pointless change which removes a feature for little to no benefit.

In the spirit of constructive feedback, I would recommend

  1. that deprecating reasonable seeming features should be perceived as fairly onerous, and that a link to a serious justification (which could be a github issue or discourse discussion) is included in the error.
  2. Before a deprecation becomes an error, it should give an obnoxious warning for a 6-18 months, with a link to a discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions