summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/performance.py3
-rw-r--r--examples/plot.py1
2 files changed, 4 insertions, 0 deletions
diff --git a/examples/performance.py b/examples/performance.py
index 1c31e8f..d0c3b91 100644
--- a/examples/performance.py
+++ b/examples/performance.py
@@ -14,6 +14,9 @@ from datetime import datetime
import cProfile
import pstats
+# in case you dont have the cython backends, disable the warnings as follows:
+# spk.disable_backend_warning = True
+
M = 100 # number of spike trains
r = 1.0 # rate of Poisson spike times
T = 1E3 # length of spike trains
diff --git a/examples/plot.py b/examples/plot.py
index c44afd1..1922939 100644
--- a/examples/plot.py
+++ b/examples/plot.py
@@ -16,6 +16,7 @@ import matplotlib.pyplot as plt
import pyspike as spk
+
spike_trains = spk.load_spike_trains_from_txt("PySpike_testdata.txt",
edges=(0, 4000))