Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is possible to create inconsistent extra SolutionArray entries #930

Closed
ischoegl opened this issue Sep 5, 2020 · 0 comments · Fixed by #931
Closed

It is possible to create inconsistent extra SolutionArray entries #930

ischoegl opened this issue Sep 5, 2020 · 0 comments · Fixed by #931

Comments

@ischoegl
Copy link
Member

ischoegl commented Sep 5, 2020

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant