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
Problem description
Inconsistent extra entries for
SolutionArrayare not caught.Steps to reproduce / Behavior
I.e.
states.propis neither of correct type (should benp.ndarray) nor consistent in terms of dimensions.System information