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

Added the ability to set the atol and rtol parameters of NEURON's cvode solver in the extra_params argument of setup() (patch from Johannes Partzsch).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/recording/__init__.py

    r714 r719  
    110110        data_array = self._get(gather, compatible_output) 
    111111        id_offset = self.population and self.population.first_id or 0 
    112         data_array[:,0] -= id_offset # relies on fact that id is always first column 
     112        if data_array.size > 0: 
     113            data_array[:,0] -= id_offset # relies on fact that id is always first column 
    113114        self._data_size = data_array.shape[0] 
    114115        return data_array