-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquick_test.py
More file actions
51 lines (42 loc) · 1.09 KB
/
Copy pathquick_test.py
File metadata and controls
51 lines (42 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
## Quick Verification Script
Create `quick_test.py` to verify the installation:
```python
# quick_test.py
import sys
def check_import(module_name):
try:
__import__(module_name)
return True
except ImportError:
return False
print("Dependency Check:")
print("=" * 50)
dependencies = {
'serial': 'pyserial',
'yaml': 'pyyaml',
'brainflow': 'brainflow',
'pylsl': 'pylsl',
'numpy': 'numpy'
}
all_ok = True
for module, package in dependencies.items():
if check_import(module):
print(f"✓ {package} installed")
else:
print(f"✗ {package} missing")
all_ok = False
print("=" * 50)
if all_ok:
print("All dependencies installed successfully!")
print("You can now run the main script.")
else:
print("Some dependencies are missing.")
print("Run the installation script again.")
# Test basic functionality
if all_ok:
try:
import numpy as np
print(f"NumPy version: {np.__version__}")
print("Basic functionality test passed!")
except Exception as e:
print(f"Error in basic test: {e}")