Spaces:
Build error
Build error
Commit
·
2e2e678
1
Parent(s):
b6be113
sane state
Browse files- portiloop/src/__init__.py +12 -1
- portiloop/src/stimulation.py +1 -0
portiloop/src/__init__.py
CHANGED
|
@@ -1 +1,12 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import io
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
def is_coral():
|
| 5 |
+
try:
|
| 6 |
+
with io.open('/sys/firmware/devicetree/base/model', 'r') as m:
|
| 7 |
+
if 'phanbell' in m.read().lower(): return True
|
| 8 |
+
except Exception: pass
|
| 9 |
+
return False
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
ADS = is_coral()
|
portiloop/src/stimulation.py
CHANGED
|
@@ -52,6 +52,7 @@ class SleepSpindleRealTimeStimulator(Stimulator):
|
|
| 52 |
self._lock = Lock()
|
| 53 |
self.last_detected_ts = time.time()
|
| 54 |
self.wait_t = 0.4 # 400 ms
|
|
|
|
| 55 |
|
| 56 |
lsl_markers_info = pylsl.StreamInfo(name='Portiloop_stimuli',
|
| 57 |
type='Markers',
|
|
|
|
| 52 |
self._lock = Lock()
|
| 53 |
self.last_detected_ts = time.time()
|
| 54 |
self.wait_t = 0.4 # 400 ms
|
| 55 |
+
self.delayer = None
|
| 56 |
|
| 57 |
lsl_markers_info = pylsl.StreamInfo(name='Portiloop_stimuli',
|
| 58 |
type='Markers',
|