Open MichaelClerx opened 4 years ago
Quite some discussion in original ticket
I think this is possible with optional inputs now?
@mirams @jonc125 ?
It can be done to some degree, but what you can't yet do is things like clamp oxmeta:ExtracellularConcentration
and clamp all variables that match.
Only difficulty in implementing that I think would be for newly created variables. We'd have to check whether they were also part of some transitively specified input, and would need to be able to check if the variable violated any constraintsduring model modification (e.g. if we create a new variable, set its definition directly, and modify it as part of a vector, we need to be able to detect that and raise an error)
Can we start by making it work for things in the ontology? The clamping of all extracellular / intracellular concs for instance would be very handy for a lot of protocols.
I think what we could do is something like:
ProtocolVariable
by one per matching variable, which can then be handled by the code as currently. If the check for transitive references is done early, we'll then pick up on most conflicts.bqbiol:isVersionOf term
, or a var annotated with bqbiol:is t
where the ontology says t is-a term
(directly or indirectly).ProtocolVariable
s are related via is-a.But as a new protocol language feature I think we'll get to this once we have the new back & front ends integrated!
https://chaste.cs.ox.ac.uk/trac/ticket/2002