-
Notifications
You must be signed in to change notification settings - Fork 0
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
Use qualified rather than local names in generated model code #169
Comments
We can't use the qualified names as-is (something like This would I think just mean tweaking the |
No I was thinking about these lines: https://github.com/ModellingWebLab/weblab-fc/blob/master/test/code_generation/weblab_model.pyx#L187-L190 |
The model variable names are already unique, even if they're from different ontologies |
OK, I see. That would need changes in |
Not urgent though, because we don't have any protocols with conflicting local names yet! |
I think it is urgent because I've updated the ModelInterface code to allow multiple rdf terms to annotate the same variable. I could hack in support so that it then extracts multiple local_name arguments from those rdf terms, but I'd much rather just do it right straight away? |
For now, just add a check that you don't get duplicate local names. That'll let #158 be merged, and we can address this separately. |
In generated code for:
code_generation.py
to add an output for every rdf term in pvar.outputsIn the protocol language for
sim:membrane_voltage
would need someoxmeta
bit in themAnd then
The text was updated successfully, but these errors were encountered: