Skip to content

Commit

Permalink
Fix circuit validation. Validation of morphologies was skipped when n…
Browse files Browse the repository at this point in the history
…o rotations fields were present. (#143)
  • Loading branch information
asanin-epfl committed Aug 5, 2021
1 parent 5e954dc commit c58f214
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Bug Fixes
~~~~~~~~~
- Fix the morphology/model access using a numpy int (using a numpy integer to access
the morphology/model used to fail).
- Fix circuit validation. Validation of morphologies was skipped when no rotations fields were
present.

Others
~~~~~
Expand Down
2 changes: 1 addition & 1 deletion bluepysnap/circuit_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ def _check_rotations():
if missing_fields:
errors.append(fatal('Group {} of {} misses biophysical fields: {}'.
format(group_name, group.file.filename, missing_fields)))
_check_rotations()
if 'components' not in config:
errors.append(fatal('No "components" in config'))
return errors
Expand All @@ -317,6 +316,7 @@ def _check_rotations():
errors += _check_components_dir('biophysical_neuron_models_dir', components)
if errors:
return errors
_check_rotations()
errors += _check_files(
'morphology: {}[{}]'.format(group_name, group.file.filename),
(Path(components['morphologies_dir'], m + '.swc') for m in group_df['morphology']),
Expand Down

0 comments on commit c58f214

Please sign in to comment.