Skip to content

Commit

Permalink
Merge pull request #118 from NeuroML/experimental
Browse files Browse the repository at this point in the history
Check if cell is CELL_2CA_POOLS_COMP_TYPE
  • Loading branch information
pgleeson committed Jun 18, 2024
2 parents c0fe053 + e6981bf commit de789e6
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/main/java/org/neuroml/export/utils/support/ModelFeature.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,16 @@ private static void analyseSingleComponent(Component component, ArrayList<ModelF

if(component.getComponentType().isOrExtends(NeuroMLElements.CELL_COMP_TYPE))
{
if (component.quietGetChild("morphology")==null)
if(!component.getComponentType().isOrExtends(NeuroMLElements.CELL_2CA_POOLS_COMP_TYPE))
{
addIfNotPresent(mfs, EXT_MORPH_BIOPHYS_CELL_MODEL);
}
if (component.quietGetChild("biophysicalProperties")==null)
{
addIfNotPresent(mfs, EXT_MORPH_BIOPHYS_CELL_MODEL);
if (component.quietGetChild("morphology")==null)
{
addIfNotPresent(mfs, EXT_MORPH_BIOPHYS_CELL_MODEL);
}
if (component.quietGetChild("biophysicalProperties")==null)
{
addIfNotPresent(mfs, EXT_MORPH_BIOPHYS_CELL_MODEL);
}
}

Cell cell = Utils.getCellFromComponent(component, lems);
Expand Down

0 comments on commit de789e6

Please sign in to comment.