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
Models can specify incorrect _nvar.
_nvar
class Model: _nvar = 3 state_variables = 'r', 'V' m = Model() m.nvar() != len(m.state_variables)
class Model: state_variables = 'r', 'V' m = Model() m.nvar() == len(m.state_variables)
The nvar property should self._nvar = len(m.state_variables) and return that. Better if these become immutable attributes.
nvar
self._nvar = len(m.state_variables)
The text was updated successfully, but these errors were encountered:
Hi @maedoc sir i am begginer , i would like to work on this issue, can you help me understand what needs to be done?
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Models can specify incorrect
_nvar
.Steps to reproduce
Expected results
The
nvar
property shouldself._nvar = len(m.state_variables)
and return that. Better if these become immutable attributes.The text was updated successfully, but these errors were encountered: