|
Revision 128, 213 bytes
(checked in by apdavison, 10 months ago)
|
Major modification to the way that ParameterSets are saved to file - they should now be a dict definition that can be evaled to give the ParameterSet content (i.e. the right hand side of a dict declaration), whereas before the file contents were execed. The main reason for this is to make sure that repeatedly saving and loading does not change the contents. Two positive side effects are (i) eval may be more secure than exec, although I have not really thought about this, (ii) the format is now rather close to JSON (while still being valid Python), which may be beneficial later on for working with ParameterSets remotely. The main negative side-effects are (i) writing parameter set files by hand is slightly more verbose, (ii) parameter set files can no longer be simply imported as Python modules. If these changes affect anyone negatively, they can be reverted and we can discuss together the best file format.
|
| Line | |
|---|
| 1 |
{ |
|---|
| 2 |
"tau_refrac": 0.11, |
|---|
| 3 |
"tau_m": 10.0, |
|---|
| 4 |
"cm": 0.25, |
|---|
| 5 |
"synI": { |
|---|
| 6 |
"tau": 10.0, |
|---|
| 7 |
"E": -75.0, |
|---|
| 8 |
}, |
|---|
| 9 |
"synE": { |
|---|
| 10 |
"tau": 1.5, |
|---|
| 11 |
"E": 0.0, |
|---|
| 12 |
}, |
|---|
| 13 |
"v_thresh": -57.0, |
|---|
| 14 |
"v_reset": -70.0, |
|---|
| 15 |
"v_rest": -70.0, |
|---|
| 16 |
} |
|---|