LEMS / LEMS/jLEMS

Case statements with no condition

Open
#78 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.