We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SolutionArray
extra
Problem description
Accessing extra items from a SolutionArray in a loop gives an AttributeError.
AttributeError
Steps to reproduce
import cantera as ct import numpy as np gas = ct.Solution("gri30.yaml") T = np.arange(900, 1000, 50) estimated_ignition_delay_times = np.ones_like(T) * 0.005 ignition_delays = ct.SolutionArray(gas, shape=T.shape, extra={"tau": estimated_ignition_delay_times}) ignition_delays.TP = T, 40.0 * 101325.0 for state in ignition_delays: print(state._extra)
Output:
OrderedDict() ...
Behavior
Looping should include the extra information.
System information
The text was updated successfully, but these errors were encountered:
Hmm, similarly, accessing a single row of the SolutionArray also does not include the extra information:
>>> ignition_delays[0]._extra Ordered_Dict()
Sorry, something went wrong.
@bryanwweber ... I can reproduce this. As ignition_delays[0] returns a SolutionArray, the _extra property should be propagated.
ignition_delays[0]
_extra
ischoegl
Successfully merging a pull request may close this issue.
Problem description
Accessing
extra
items from aSolutionArray
in a loop gives anAttributeError
.Steps to reproduce
Output:
Behavior
Looping should include the extra information.
System information
The text was updated successfully, but these errors were encountered: