Changeset 411

Show
Ignore:
Timestamp:
07/14/08 16:26:23 (5 years ago)
Author:
apdavison
Message:

Changed a few tabs to spaces. Please folks, check your editors insert four spaces when you press the tab key, not a tab character.

Location:
trunk/src
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common.py

    r410 r411  
    12401240        self.weights = weights 
    12411241        self.delays = delays 
    1242         self.check_connections = check_connections 
     1242        self.check_connections = check_connections 
    12431243        if delays is None: 
    12441244            self.delays = get_min_delay() 
     
    13081308class FromFileConnector(Connector): 
    13091309    """ 
    1310     Make connections according to a list contained in a file. 
     1310    Make connections according to a list read from a file. 
    13111311    """ 
    13121312     
  • trunk/src/nest1/connectors.py

    r409 r411  
    119119            rarr = rng.uniform(0, 1, (npre,)) 
    120120            # We get the list of cells that will established a connection 
    121             source_list = numpy.compress((distances >= 1) | ((0 < distances) & (distances < 1) & (rarr <= distances)), presynaptic_neurons).tolist() 
     121            source_list = numpy.compress((distances >= 1) | ((0 < distances) & (distances < 1) & (rarr <= distances)), presynaptic_neurons).tolist() 
    122122            # We remove the post cell if we don't allow self connections 
    123123            if not self.allow_self_connections and post in source_list: 
    124                 source_list.remove(post) 
     124                source_list.remove(post) 
    125125            N = len(source_list) 
    126126            weights = self.getWeights(N) 
  • trunk/src/nest2/connectors.py

    r409 r411  
    8383     
    8484    def connect(self, projection): 
    85         postsynaptic_neurons = projection.post.cell.flatten() 
     85        postsynaptic_neurons = projection.post.cell.flatten() 
    8686        npost = len(postsynaptic_neurons) 
    8787        for pre in projection.pre.cell.flat: