Changeset 718

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).

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/doc/installation.txt

    r706 r718  
    105105    $ python  
    106106    >>> import nest 
     107 
    107108               -- N E S T 2 beta -- 
    108109              Neural Simulation Tool 
    109110      Copyright 1995-2009 The NEST Initiative 
    110        Version 1.9-8128 Apr 23 2009 14:09:00 
     111       Version 1.9-8558 Mar  2 2010 09:50:16 
    111112    ... 
    112113    >>> nest.Models() 
    113114    ['ac_generator', 'aeif_cond_alpha', 'aeif_w_meter', 'conductancemeter', 
    114      'cont_delay_synapse', 'correlation_detector', 'dc_generator', 'hh_cond_exp_traub', 
    115      'hh_psc_alpha', 'iaf_cond_alpha', 'iaf_cond_exp', 'iaf_cond_exp_sfa_rr', 
    116      'iaf_neuron', 'iaf_psc_alpha', 'iaf_psc_alpha_canon', 'iaf_psc_alpha_presc', 
    117      'iaf_psc_delta', 'iaf_psc_delta_canon', 'iaf_psc_exp', 'layer', 'layer_3d', 
    118      'layer_unrestricted', 'mip_generator', 'noise_generator', 'parrot_neuron', 
    119      'poisson_generator', 'poisson_generator_ps', 'proxynode', 'pulsepacket_generator', 
    120      'spike_detector', 'spike_generator', 'static_synapse', 'static_synapse_hom_wd', 
    121      'stdp_pl_synapse_hom', 'stdp_synapse', 'stdp_synapse_hom', 
    122      'step_current_generator', 'subnet', 'tsodyks_synapse', 'voltmeter'] 
     115     'cont_delay_synapse', 'correlation_detector', 'dc_generator', 'hh_cond_exp_traub',  
     116     'hh_psc_alpha', 'ht_generator', 'ht_neuron', 'ht_synapse', 'iaf_cond_alpha', 
     117     'iaf_cond_alpha_mc', 'iaf_cond_exp', 'iaf_cond_exp_sfa_rr', 'iaf_neuron', 
     118     'iaf_psc_alpha', 'iaf_psc_alpha_canon', 'iaf_psc_alpha_presc', 'iaf_psc_delta',  
     119     'iaf_psc_delta_canon', 'iaf_psc_exp', 'iaf_tum_2000', 'layer', 'layer_3d',  
     120     'layer_unrestricted', 'mat2_psc_exp', 'mip_generator', 'multimeter', 
     121     'noise_generator', 'parrot_neuron', 'parrot_neuron_ps', 'poisson_generator',  
     122     'poisson_generator_ps', 'pulsepacket_generator', 'spike_detector', 'spike_generator', 
     123     'static_synapse', 'static_synapse_hom_wd', 'stdp_pl_synapse_hom', 'stdp_synapse',  
     124     'stdp_synapse_hom', 'step_current_generator', 'subnet', 'tsodyks_synapse', 'voltmeter'] 
    123125     
    124126Check that ``'aeif_cond_alpha'`` is in the list of models. If it is not, you may need to install a newer version of the `GNU Scientific Library`_ and then recompile NEST. 
  • trunk/src/nest/__init__.py

    r717 r718  
    2424 
    2525Set = set 
    26  
    27  
    2826tempdirs       = [] 
    29  
    3027NEST_SYNAPSE_TYPES = ["cont_delay_synapse" ,"static_synapse", "stdp_pl_synapse_hom", 
    3128                      "stdp_synapse", "stdp_synapse_hom", "tsodyks_synapse"] 
    32  
    3329logger = logging.getLogger("PyNN") 
    3430 
     
    114110                                         'min_delay': min_delay, 
    115111                                         'max_delay': max_delay}) 
     112    simulator.connection_managers = [] 
    116113    simulator.reset() 
    117114     
  • 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):