VisualNeuroscience-UH / CxSystem2

Version 2 of the cortex simulation software.
https://cxsystem2.readthedocs.io
MIT License
4 stars 1 forks source link

pytest example bug with `do_init_vm` set to 0 #58

Closed Vafa-Andalibi closed 5 years ago

Vafa-Andalibi commented 5 years ago

The new updated pytest example after nd integration works with initialization of vms, but if do_init_vm is set to 0 (which should be for testing) I get the following:

ERROR      Brian 2 encountered an unexpected error. If you think this is bug in Brian 2, please report this issue either to the mailing list at <http://groups.google.com/group/brian-development/>, or to the issue tracker at <https://github.com/brian-team/brian2/issues>. Please include this file with debug information in your report: C:\Users\user\AppData\Local\Temp\brian_debug_ush_uazf.log  Additionally, you can also include a copy of the script that was run, available at: C:\Users\user\AppData\Local\Temp\brian_script_77ju2p2b.py Thanks! [brian2]
Traceback (most recent call last):
  File "C:\Users\user\CX2\lib\site-packages\brian2\core\network.py", line 841, in before_run
    obj.before_run(run_namespace)
  File "C:\Users\user\CX2\lib\site-packages\brian2\groups\neurongroup.py", line 880, in before_run
    self.equations.check_units(self, run_namespace=run_namespace)
  File "C:\Users\user\CX2\lib\site-packages\brian2\equations\equations.py", line 945, in check_units
    user_identifiers=external)  # all variables are user defined
  File "C:\Users\user\CX2\lib\site-packages\brian2\groups\group.py", line 739, in resolve_all
    run_namespace=run_namespace)
  File "C:\Users\user\CX2\lib\site-packages\brian2\groups\group.py", line 696, in _resolve
    return self._resolve_external(identifier, run_namespace=run_namespace)
  File "C:\Users\user\CX2\lib\site-packages\brian2\groups\group.py", line 820, in _resolve_external
    raise KeyError(error_msg)
KeyError: 'The identifier "noise_sigma" could not be resolved.'