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

Allow ConditionalDerivedVariables to be used in DerivedVariable expressions #68

Open
pgleeson opened this issue Jun 1, 2015 · 2 comments

Comments

@pgleeson
Copy link
Member

pgleeson commented Jun 1, 2015

Currently variables defined in a ConditionalDerivedVariable expression cannot be used in a DerivedVariable expression.

Example where this fails (uncomment line for DerivedVariable iMemb):

https://github.com/OpenSourceBrain/FergusonEtAl2014-CA1PyrCell/blob/341fef9d14a10e64688838a85b02950b7ea3af1e/NeuroML2/IzhikevichFerguson.xml

@pgleeson
Copy link
Member Author

@robertcannon if you have any insight into why this should be the case it would be great. A DerivedVariable can certainly depend on/use other DerivedVariables, and ConditionalDerivedVariable can probably depend on DerivedVariables, but is there any fundamental reason why a DerivedVariable can't use a variable defined in ConditionalDerivedVariable?

@robertcannon
Copy link
Member

I don't think there is any fundamental reason and I can't see anything in the jLEMS code that treats them differently either. So I'll have to try that example to see where it is failing.

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

No branches or pull requests

2 participants