Show
Ignore:
Timestamp:
03/02/10 10:37:15 (2 years ago)
Author:
apdavison
Message:

Fixed ticket:158. Added a more helpful error message for the common case that NEST has been compiled without GSL support (see ticket:159).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/nest/simulator.py

    r713 r718  
    3535CHECK_CONNECTIONS = False 
    3636recorder_list = [] 
     37connection_managers = [] 
    3738 
    3839logger = logging.getLogger("PyNN") 
     
    158159    try: 
    159160        cell_gids = nest.Create(nest_model, n) 
    160     except nest.NESTError, errmsg: 
    161         raise errors.InvalidModelError(errmsg) 
     161    except nest.NESTError, err: 
     162        if "UnknownModelName" in err.message and "cond" in err.message: 
     163            raise errors.InvalidModelError("%s Have you compiled NEST with the GSL (Gnu Scientific Library)?" % err) 
     164        raise errors.InvalidModelError(err) 
    162165    if cell_parameters: 
    163166        try: 
     
    257260        `parent` -- the parent `Projection`, if any. 
    258261        """ 
     262        global connection_managers 
    259263        self.sources = [] 
    260264        if synapse_model is None: 
     
    268272            assert parent.plasticity_name == self.synapse_model 
    269273        self._connections = None 
     274        connection_managers.append(self) 
    270275 
    271276    def __getitem__(self, i):