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
Stoich.cpp @ line no 44: reacSystemPath, but @ line no 281: message says readSystemPath, it should be reacSystemPath right?
In new python binding this field reacSystemPath might not be exposed ( if try to print dir(stoich) this field is not showing)
replacing in (100-102) crossComptSimpleReacGSSA.py.BROKEN from Stoich.path to Stoich.reacSystemPath gives a seg fault with Stoich::innerInstallReaction
3.a This happens for GSL and GSSA solvers for multiCompartment/crosscompartment model ( may be durning buildXreacs some reactions are not zombified or other way round)
For single compartment model, I have set stoich.reacSystemPath and it works (scriptKineticSolver.py)
The text was updated successfully, but these errors were encountered:
dir(stoich) does not return C++ fields. To get them use getFieldNames. It is for two reasons: first, performance reason because python objects don't have to carry copies. Second, this behavior required odd hacks in the API (can't recall which one and can't find a note or commit.).
This is also the reason why isinstance does not work (#425, #423) as before in the new API. Use getFieldNames, getFieldDicts etc. and showfields to see the C++ level attributes. The generic attributes which are common to all moose elements (think moose.Neutral) are available in dir command.
* Fixed typo #426
* getFieldNames is available for element also
Both are equivalent
>>> a = moose.Stoich('a')
>>> v1 = moose.getFieldNames(a, 'value')
>>> v2 = a.getFieldNames('value')
>>> assert v1 == v2
If not argument is passed to `getFieldNames`, it returns are field
types.
Co-authored-by: HarshaRani <[email protected]>
https://github.com/BhallaLab/moose-examples/blob/master/snippets/crossComptSimpleReacGSSA.py.BROKEN
line no 100-102 Stoich.path says DeprecationWarning:: Use Soitch::readSystemPath instead
Stoich.cpp @ line no 44: reacSystemPath, but @ line no 281: message says readSystemPath, it should be reacSystemPath right?
In new python binding this field reacSystemPath might not be exposed ( if try to print dir(stoich) this field is not showing)
replacing in (100-102) crossComptSimpleReacGSSA.py.BROKEN from Stoich.path to Stoich.reacSystemPath gives a seg fault with Stoich::innerInstallReaction
3.a This happens for GSL and GSSA solvers for multiCompartment/crosscompartment model ( may be durning buildXreacs some reactions are not zombified or other way round)
For single compartment model, I have set stoich.reacSystemPath and it works (scriptKineticSolver.py)
The text was updated successfully, but these errors were encountered: