Skip to content

Commit

Permalink
Check if cell is CELL_2CA_POOLS_COMP_TYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Jun 13, 2024
1 parent 11aabc9 commit e6981bf
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 e6981bf

Please sign in to comment.