| 27 | | ``setup()`` takes various optional arguments: setting the simulation timestep (there is currently no support in the API for variable timestep methods although native simulator code can be used to select this option where the simulator supports it), setting the minimum and maximum synaptic delays, and turning debugging output on and off, e.g.:: |
| 28 | | |
| 29 | | >>> setup(timestep=0.1, min_delay=0.1, max_delay=0.5, debug=False) |
| 30 | | |
| 31 | | Debugging information is written to a log file in the working directory. |
| | 27 | ``setup()`` takes various optional arguments: setting the simulation timestep (there is currently no support in the API for variable timestep methods although native simulator code can be used to select this option where the simulator supports it) and setting the minimum and maximum synaptic delays, e.g.:: |
| | 28 | |
| | 29 | >>> setup(timestep=0.1, min_delay=0.1, max_delay=0.5) |
| | 30 | |
| | 31 | In previous versions, ``setup()`` took a ``debug`` argument for configuring logging. To allow more flexibility, configuration of logging must now be done separately. There is a convenience function in the ``pyNN.utility`` module to simplify this:: |
| | 32 | |
| | 33 | >>> from pyNN.utility import init_logging |
| | 34 | >>> init_logging("logfile", debug=True) |
| | 35 | |
| | 36 | or you can configure the Python ``logging`` module directly. |
| 83 | | File "/usr/lib/python/site-packages/pyNN/nest1.py", line 228, in create |
| | 88 | File "<stdin>", line 1, in ? |
| | 89 | create(IF_curr_alpha, cellparams={'tau_m': 'bar'}) |
| | 90 | File "/usr/lib/python/site-packages/pyNN/common.py", line 655, in create |
| | 91 | all_cells, mask_local, first_id, last_id = simulator.create_cells(cellclass, cellparams, n) |
| | 92 | File "/usr/lib/python/site-packages/pyNN/neuron/simulator.py", line 287, in create_cells |
| 85 | | File "/usr/lib/python/site-packages/pyNN/nest1.py", line 68, in __init__ |
| 86 | | common.IF_curr_alpha.__init__(self,parameters) # checks supplied parameters and adds default |
| 87 | | File "/usr/lib/python/site-packages/pyNN/common.py", line 113, in __init__ |
| 88 | | self.parameters = self.checkParameters(parameters, with_defaults=True) |
| 89 | | File "/usr/lib/python/site-packages/pyNN/common.py", line 90, in checkParameters |
| 90 | | raise InvalidParameterValueError, (type(supplied_parameters[k]), type(default_parameters[k])) |
| 91 | | InvalidParameterValueError: (<type 'str'>, <type 'float'>) |
| 92 | | |
| | 94 | File "/usr/lib/python/site-packages/pyNN/neuron/cells.py", line 442, in __init__ |
| | 95 | cells.IF_curr_alpha.__init__(self, parameters) # checks supplied parameters and adds default |
| | 96 | File "/usr/lib/python/site-packages/pyNN/common.py", line 460, in __init__ |
| | 97 | self.parameters = self.__class__.checkParameters(parameters, with_defaults=True) |
| | 98 | File "/usr/lib/python/site-packages/pyNN/common.py", line 494, in checkParameters |
| | 99 | raise InvalidParameterValueError(err_msg) |
| | 100 | InvalidParameterValueError: For tau_m in IF_curr_alpha, expected <type 'float'>, got <type 'str'> (bar) |