You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CanteraError:
***********************************************************************
InputFileError thrown by AnyValue::getMapWhere:
Error on line 1 of /Users/bryan/Downloads/cantera.yaml:
Element is not a mapping or list of mappings
| Line |
> 1 > species:
^
| 2 | - name: H
| 3 | composition: {H: 1}
| 4 | thermo:
***********************************************************************
It would be nice if this could be improved to point out the actual problem. Minimal YAML file:
@bryanwweber ... I proposed a fix in #880, and found also other instances where the error messages could be misleading (the behavior is caused by cython having incomplete C++ const support, with an error-throwing operator being shadowed by a permissive one). However, I'm not 100% sure of what 'missing' keywords should be allowed. nasa.yaml comes to mind ...Edit: Nevermind, argon.yaml works as expected, so #880 is good.
As reported on the User's Group (https://groups.google.com/d/msg/cantera-users/2sNq2p-fVKM/-fSXMWA9CAAJ), a YAML input file that is missing a top-level
phases
key has a misleading error message:It would be nice if this could be improved to point out the actual problem. Minimal YAML file:
The text was updated successfully, but these errors were encountered: