Giter VIP home page Giter VIP logo

brian-team / brian Goto Github PK

View Code? Open in Web Editor NEW
60.0 60.0 22.0 41.57 MB

Brian is a simulator for spiking neural networks available on almost all platforms. This is the legacy version that is no longer developed, for new projects consider using Brian2 instead.

Home Page: http://briansimulator.org

License: Other

Python 68.35% C++ 22.38% Shell 0.14% C 8.38% MATLAB 0.12% Scilab 0.13% TeX 0.39% Cuda 0.01% Batchfile 0.01% Dockerfile 0.01% SWIG 0.07%

brian's People

Contributors

bobopi314 avatar markovg avatar mstimberg avatar thesamovar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

brian's Issues

SyntaxError when installing

Hi,

There's an error occurred when installing, (pip install) could you please help with that?
Full error report:

    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/h1/r3wdlsgn3d95857wmhyt5gxm0000gn/T/pip-install-phjpxnk1/brian/setup.py", line 31
        except CCompilerError, ex:
                             ^
    SyntaxError: invalid syntax
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/h1/r3wdlsgn3d95857wmhyt5gxm0000gn/T/pip-install-phjpxnk1/brian/

NameError: global name 'v_rest_e' is not defined

i am trying to run the Mnist repository but got the following error.need your help to resolve this issue.

NameError                                 Traceback (most recent call last)
<ipython-input-2-1052c970edd9> in <module>()
    349 
    350 neuron_groups['e'] = b.NeuronGroup(n_e*len(population_names), neuron_eqs_e, threshold= v_thresh_e, refractory= refrac_e, reset= scr_e, 
--> 351                                    compile = True, freeze = True)
    352 neuron_groups['i'] = b.NeuronGroup(n_i*len(population_names), neuron_eqs_i, threshold= v_thresh_i, refractory= refrac_i, reset= v_reset_i, 
    353                                    compile = True, freeze = True)

C:\ProgramData\Anaconda5\envs\py27\lib\site-packages\brian\fundamentalunits.pyc in new_f(*args, **kwds)
   1406                                                      str(au[k]),
   1407                                                      get_dimensions(newkeyset[k]))
-> 1408             result = f(*args, **kwds)
   1409             if "result" in au:
   1410                 assert have_same_dimensions(result, au["result"]), \

C:\ProgramData\Anaconda5\envs\py27\lib\site-packages\brian\neurongroup.pyc in __init__(self, N, model, threshold, reset, init, refractory, level, clock, order, implicit, unit_checking, max_delay, compile, freeze, method, max_refractory)
    283         if isinstance(threshold, str):
    284             if isinstance(model, Equations):
--> 285                 threshold = select_threshold(threshold, model, level=level + 1)
    286             else:
    287                 threshold = StringThreshold(threshold, level=level + 1)

C:\ProgramData\Anaconda5\envs\py27\lib\site-packages\brian\threshold.pyc in select_threshold(expr, eqs, level)
    101     # non-constant.
    102     expr = expr.strip()
--> 103     eqs.prepare()
    104     ns = namespace(expr, level=level + 1)
    105     s = re.search(r'^\s*(\w+)\s*>=?(.+)', expr)

C:\ProgramData\Anaconda5\envs\py27\lib\site-packages\brian\equations.pyc in prepare(self, check_units)
    371         self.compile_functions()
    372         # Check units
--> 373         if check_units: self.check_units()
    374         # Set the update order of (static) variables
    375         self.set_eq_order()

C:\ProgramData\Anaconda5\envs\py27\lib\site-packages\brian\equations.pyc in check_units(self)
    457                 f.func_globals.update(namespace_replace_quantity_with_pure(f.func_globals))
    458                 units = namespace_replace_quantity_with_pure(self._units)
--> 459                 self.apply(var, units) + (self._units[var] / second) # Check that the two terms have the same dimension
    460                 f.func_globals.update(old_func_globals)
    461         except DimensionMismatchError, inst:

C:\ProgramData\Anaconda5\envs\py27\lib\site-packages\brian\equations.pyc in apply(self, state, vardict)
    590             # could add something like: if var not in vardict: this would allow you to override the dependencies if you wanted to - worth doing?
    591             vardict[var] = call_with_dict(self._function[var], vardict)
--> 592         return f(*[vardict[var] for var in f.func_code.co_varnames])
    593 
    594     """

<string> in <lambda>(v, I_synE, I_synI)

NameError: global name 'v_rest_e' is not defined

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.