Case statements with no condition
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 11
- Forks
- 11
- Avg merge
- 8h 6m
- Merged PRs (30d)
- 1
Description
There are a couple of nml examples where Case clauses (under ConditionalDerivedVariables) are used in a if-else way, i.e. one case defines a given condition and the respecitve value, while the other has a null condition and a different value (the "else" for the previous condition). See e.g.
https://github.com/OpenSourceBrain/Thalamocortical/blob/master/neuroConstruct/generatedNeuroML2/kc_fast.channel.nml#L61
Should that be allowed? I don't think so. Nor does the LEMS schema
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the referenced kc_fast.channel.nml example and the LEMS_v0.7.xsd Case definition first. Determine whether a Case with a null condition is valid in jLEMS and whether the interpreter and schema agree; done means the behavior or specification is made consistent and covered by an appropriate validation check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, xml
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100