Skip to content

It is possible to create inconsistent extra SolutionArray entries #930

@ischoegl

Description

@ischoegl

Problem description

Inconsistent extra entries for SolutionArray are not caught.

Steps to reproduce / Behavior

>>> gas = ct.Solution("air.yaml")
>>> states = ct.SolutionArray(gas, 3, extra={"prop": [5, 6, 7]}
>>> states.prop = "hello world"
>>> states.prop
'hello world'

I.e. states.prop is neither of correct type (should be np.ndarray) nor consistent in terms of dimensions.

System information

  • Cantera version: 2.5.0b1
  • OS: Ubuntu 18.04
  • Python/MATLAB/other software versions: 3.6.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions