Skip to content

Instantly share code, notes, and snippets.

@ozturkib
Created July 5, 2016 18:12
Show Gist options
  • Save ozturkib/1af391a6ff1064ab178ac3f830e17d51 to your computer and use it in GitHub Desktop.
Save ozturkib/1af391a6ff1064ab178ac3f830e17d51 to your computer and use it in GitHub Desktop.
Output of this file is : brian_version : 2.0rc3 times : 0. s How is this possible ?
'''
Created on 5 Jul 2016
@author: io517@york.ac.uk
'''
import brian2
print("brian_version : " + str(brian2.__version__))
from brian2 import *
indices = np.array([0, 2, 1])
times = np.array([1, 2, 3])*1*ms
G = SpikeGeneratorGroup(3, indices, times)
print("times : " + str(G.t[:]))
@ozturkib
Copy link
Author

ozturkib commented Jul 5, 2016

Output of this file is :

brian_version : 2.0rc3 
times : 0. s 

How is this possible ?

@ozturkib
Copy link
Author

ozturkib commented Jul 5, 2016

Also I cannot access properly into the 'times' object as
G.times
It is raising attribute error as well as :
AttributeError: No attribute with name times

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment