|
SNABSuite
0.x
Spiking Neural Architecture Benchmark Suite
|
Functions | |
| def | cm2inch (value) |
| def | get_max (data) |
| def | get_min (data) |
| def | plot_membrane (ax, xs, ys, color, ymin=None, ymax=None, xmin=None, xmax=None, label="") |
Variables | |
| parser = argparse.ArgumentParser(description='Plot membrane potential graphs') | |
| type | |
| float | |
| help | |
| str | |
| default | |
| int | |
| required | |
| True | |
| metavar | |
| args = parser.parse_args() | |
| fig = plt.figure(figsize=(cm2inch(12), cm2inch(6.0))) | |
| ax = fig.add_subplot(111) | |
| results = np.genfromtxt(args.file, delimiter=',', names=None) | |
| data = np.zeros((results.shape[0], len(results[0]))) | |
| xs = np.array(data[:, args.tc]) | |
| ys = np.array(data[:, args.y]) | |
| string | label = "Membrane Voltage" |
| color | |
| ymin | |
| ymax | |
| xmin | |
| xmax | |
| results2 = np.genfromtxt(args.sp, delimiter=',', names=None) | |
| bool | first = True |
| x | |
| i | |
| linestyle | |
| lw | |
| spikes = np.zeros((results2.shape[0], len(results2[0]))) | |
| loc | |
| bbox_to_anchor | |
| ncol | |
| format | |
| bbox_inches | |
| def plot_membrane_pot.cm2inch | ( | value | ) |
Definition at line 58 of file plot_membrane_pot.py.
| def plot_membrane_pot.get_max | ( | data | ) |
Definition at line 62 of file plot_membrane_pot.py.
| def plot_membrane_pot.get_min | ( | data | ) |
Definition at line 67 of file plot_membrane_pot.py.
| def plot_membrane_pot.plot_membrane | ( | ax, | |
| xs, | |||
| ys, | |||
| color, | |||
ymin = None, |
|||
ymax = None, |
|||
xmin = None, |
|||
xmax = None, |
|||
label = "" |
|||
| ) |
Plots membrane potential and spikes ax -- plt.figure object to plot into xs -- x values ys -- y values color -- color for the membrane potential graph ymin -- Minimal y value for limits of the plot ymax -- Maximal y value for limits of the plot xmin -- Mnimial x value for limits of the plot xmin -- Maximal x value for limits of the plot
Definition at line 72 of file plot_membrane_pot.py.
| plot_membrane_pot.args = parser.parse_args() |
Definition at line 46 of file plot_membrane_pot.py.
| plot_membrane_pot.ax = fig.add_subplot(111) |
Definition at line 113 of file plot_membrane_pot.py.
| plot_membrane_pot.bbox_inches |
Definition at line 167 of file plot_membrane_pot.py.
| plot_membrane_pot.bbox_to_anchor |
Definition at line 164 of file plot_membrane_pot.py.
| plot_membrane_pot.color |
Definition at line 128 of file plot_membrane_pot.py.
| plot_membrane_pot.data = np.zeros((results.shape[0], len(results[0]))) |
Definition at line 117 of file plot_membrane_pot.py.
| plot_membrane_pot.default |
Definition at line 34 of file plot_membrane_pot.py.
Definition at line 112 of file plot_membrane_pot.py.
| bool plot_membrane_pot.first = True |
Definition at line 137 of file plot_membrane_pot.py.
| plot_membrane_pot.float |
Definition at line 30 of file plot_membrane_pot.py.
| plot_membrane_pot.format |
Definition at line 167 of file plot_membrane_pot.py.
| plot_membrane_pot.help |
Definition at line 30 of file plot_membrane_pot.py.
| plot_membrane_pot.i |
Definition at line 140 of file plot_membrane_pot.py.
| plot_membrane_pot.int |
Definition at line 35 of file plot_membrane_pot.py.
| string plot_membrane_pot.label = "Membrane Voltage" |
Definition at line 124 of file plot_membrane_pot.py.
| plot_membrane_pot.linestyle |
Definition at line 140 of file plot_membrane_pot.py.
| plot_membrane_pot.loc |
Definition at line 164 of file plot_membrane_pot.py.
| plot_membrane_pot.lw |
Definition at line 141 of file plot_membrane_pot.py.
| plot_membrane_pot.metavar |
Definition at line 43 of file plot_membrane_pot.py.
| plot_membrane_pot.ncol |
Definition at line 165 of file plot_membrane_pot.py.
| plot_membrane_pot.parser = argparse.ArgumentParser(description='Plot membrane potential graphs') |
Definition at line 27 of file plot_membrane_pot.py.
| plot_membrane_pot.required |
Definition at line 42 of file plot_membrane_pot.py.
| plot_membrane_pot.results = np.genfromtxt(args.file, delimiter=',', names=None) |
Definition at line 116 of file plot_membrane_pot.py.
| plot_membrane_pot.results2 = np.genfromtxt(args.sp, delimiter=',', names=None) |
Definition at line 134 of file plot_membrane_pot.py.
| plot_membrane_pot.spikes = np.zeros((results2.shape[0], len(results2[0]))) |
Definition at line 148 of file plot_membrane_pot.py.
| plot_membrane_pot.str |
Definition at line 34 of file plot_membrane_pot.py.
| plot_membrane_pot.True |
Definition at line 42 of file plot_membrane_pot.py.
| plot_membrane_pot.type |
Definition at line 30 of file plot_membrane_pot.py.
| plot_membrane_pot.x |
Definition at line 140 of file plot_membrane_pot.py.
| plot_membrane_pot.xmax |
Definition at line 129 of file plot_membrane_pot.py.
| plot_membrane_pot.xmin |
Definition at line 129 of file plot_membrane_pot.py.
| plot_membrane_pot.xs = np.array(data[:, args.tc]) |
Definition at line 121 of file plot_membrane_pot.py.
| plot_membrane_pot.ymax |
Definition at line 129 of file plot_membrane_pot.py.
| plot_membrane_pot.ymin |
Definition at line 128 of file plot_membrane_pot.py.
| plot_membrane_pot.ys = np.array(data[:, args.y]) |
Definition at line 122 of file plot_membrane_pot.py.
1.8.11