Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Announce of the tool to validate SONATA circuits. #123

Open
asanin-epfl opened this issue Jul 17, 2020 · 5 comments
Open

Announce of the tool to validate SONATA circuits. #123

asanin-epfl opened this issue Jul 17, 2020 · 5 comments

Comments

@asanin-epfl
Copy link
Contributor

We have created a tool to validate SONATA circuits https://github.com/BlueBrain/snap/#tools. Should we mention this tool in SONATA_DEVELOPER_GUIDE.md?

@asanin-epfl
Copy link
Contributor Author

cc @kaeldai @pgleeson

@asanin-epfl
Copy link
Contributor Author

Here is an example of running it with one of examples circuit in this repo:

(venv) bb-fvfxv5s0j1wt:snap sanin$ bluepysnap validate /workspace/sonata/examples/300_cells/circuit_config.json 
Traceback (most recent call last):
  File "/workspace/snap/venv/bin/bluepysnap", line 11, in <module>
    load_entry_point('bluepysnap', 'console_scripts', 'bluepysnap')()
  File "/workspace/snap/venv/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/workspace/snap/venv/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/workspace/snap/venv/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/workspace/snap/venv/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/workspace/snap/venv/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/workspace/snap/bluepysnap/cli.py", line 20, in validate_cli
    validate(config_file)
  File "/workspace/snap/bluepysnap/circuit_validation.py", line 587, in validate
    errors = _check_populations(config)
  File "/workspace/snap/bluepysnap/circuit_validation.py", line 564, in _check_populations
    errors += _check_nodes_population(nodes_dict, config)
  File "/workspace/snap/bluepysnap/circuit_validation.py", line 354, in _check_nodes_population
    population['node_group_id'], population['node_group_index'], population)
  File "/workspace/snap/bluepysnap/circuit_validation.py", line 233, in _check_multi_groups
    if _get_group_size(group) < max_id:
  File "/workspace/snap/bluepysnap/circuit_validation.py", line 214, in _get_group_size
    raise BluepySnapError('Empty group {}'.format(group_h5))
bluepysnap.exceptions.BluepySnapError: Empty group <HDF5 group "/nodes/external/0" (0 members)>

@pgleeson
Copy link
Contributor

Thanks for letting us know @asanin-epfl. I'll try it out.

@asanin-epfl
Copy link
Contributor Author

asanin-epfl commented Jul 21, 2020

Great. It currently misses validation of node_types_file csv file but I'm working on it. It soon will be merged BlueBrain/snap#81.
It's merged and ready in https://github.com/BlueBrain/snap/releases/tag/v0.6.0.

@asanin-epfl
Copy link
Contributor Author

Here is the log with the latest master of bluepysnap

FATAL: Group external/0 of .../sonata/examples/300_cells/network/external_nodes.h5 misses required fields: ['model_template']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants