| 413 | | if len(nest.GetStatus(recording_device, 'interval')) == 1: # returns a list of length 1 if 'interval' is present, otherwise returns the whole dict |
|---|
| 414 | | print "PyNN Warning: nest2 recording_device.interval detected." |
|---|
| 415 | | print "Please upgrade to a more recent version of nest 2" |
|---|
| 416 | | print "Transition code only temporarily supported." |
|---|
| 417 | | ss_dict['interval'] = nest.GetStatus([0],"resolution")[0] |
|---|
| | 413 | try: |
|---|
| | 414 | if len(nest.GetStatus(recording_device, 'interval')) == 1: # returns a list of length 1 if 'interval' is present, otherwise returns the whole dict |
|---|
| | 415 | print "PyNN Warning: nest2 recording_device.interval detected." |
|---|
| | 416 | print "Please upgrade to a more recent version of nest 2" |
|---|
| | 417 | print "Transition code only temporarily supported." |
|---|
| | 418 | ss_dict['interval'] = nest.GetStatus([0],"resolution")[0] |
|---|
| | 419 | except nest.hl_api.NESTError: |
|---|
| | 420 | pass |
|---|
| 742 | | if len(nest.GetStatus(self.recorders[variable], 'interval')) == 1: |
|---|
| 743 | | print "PyNN Warning: nest2 recording_device.interval detected." |
|---|
| 744 | | print "Please upgrade to a more recent version of nest 2" |
|---|
| 745 | | print "Transition code only temporarily supported." |
|---|
| 746 | | ss_dict['interval'] = nest.GetStatus([0],"resolution")[0] |
|---|
| 747 | | |
|---|
| | 745 | try: |
|---|
| | 746 | if len(nest.GetStatus(self.recorders[variable], 'interval')) == 1: |
|---|
| | 747 | print "PyNN Warning: nest2 recording_device.interval detected." |
|---|
| | 748 | print "Please upgrade to a more recent version of nest 2" |
|---|
| | 749 | print "Transition code only temporarily supported." |
|---|
| | 750 | ss_dict['interval'] = nest.GetStatus([0],"resolution")[0] |
|---|
| | 751 | except nest.hl_api.NESTError: |
|---|
| | 752 | pass |
|---|