Skip to content

Commit 1cf8b10

Browse files
Merge pull request #13 from sccn/10-move-sigvisualizer-into-the-monorepo-as-a-component
Move SigVisualizer into the monorepo as a GPLv3 component
2 parents e12b701 + 693116c commit 1cf8b10

19 files changed

Lines changed: 1469 additions & 7 deletions

‎LICENSE‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Available separately at: https://github.com/sccn/liblsl
147147

148148
COMPONENT LICENSING POLICY
149149

150-
Incorporated components retain their original licenses. Where a component was released under the MIT License, it remains under the MIT License in this Repository; the same applies to components under the ISC License, the Boost Software License, or a public-domain dedication. Their verbatim notices are reproduced in THIRD-PARTY-NOTICES.md in the repository root, and each component directory retains its own license file.
150+
Incorporated components retain their original licenses. Where a component was released under the MIT License, it remains under the MIT License in this Repository; the same applies to components under the ISC License, the Boost Software License, the GNU General Public License, or a public-domain dedication. A component under a copyleft license (for example the GNU GPL) is aggregated with the other contents of this Repository within the meaning of that license, and is not brought under these proprietary terms; its own license governs it in full. Their verbatim notices are reproduced in THIRD-PARTY-NOTICES.md in the repository root, and each component directory retains its own license file.
151151

152152
Client applications and language bindings distributed as components of this Repository, together with the integration code added to them, are made available under the license of the upstream project each derives from, not under the proprietary terms of this license. That integration code consists of interface declarations and status-display logic that call the public library API; it contains no cryptographic implementation.
153153

‎THIRD-PARTY-NOTICES.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,17 @@ THE SOFTWARE.
9999

100100
---
101101

102+
## SigVisualizer (GNU General Public License v3.0)
103+
104+
Signal-display application, vendored as a component at `apps/SigVisualizer/`.
105+
Unlike the other components, its upstream is GPLv3, so this component and the
106+
security integration added to it are GPLv3. The full license text is at
107+
`apps/SigVisualizer/LICENSE`; it is not inlined here because of its length.
108+
The component is aggregated with the rest of this repository under GPLv3
109+
section 5 and is not subject to the proprietary Secure LSL terms.
110+
111+
---
112+
102113
## asio (Boost Software License 1.0)
103114

104115
Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com)

‎apps/SigVisualizer/.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
__pycache__/
2+
.idea/
3+
venv/

‎apps/SigVisualizer/COMPONENT.md‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# SigVisualizer component
2+
3+
The SigVisualizer signal-display application with security-status support,
4+
vendored into this monorepo as a component.
5+
6+
## Licensing (GPLv3, unlike the MIT components)
7+
8+
Upstream SigVisualizer is licensed under the GNU General Public License v3.0.
9+
This component therefore remains GPLv3; see `LICENSE` in this directory. Because
10+
GPLv3 is copyleft, the security integration added here is also GPLv3, and it
11+
could not be relicensed under proprietary terms even though it contains no
12+
cryptography (it reads stream security status through the public LSL API).
13+
14+
This is a deliberate departure from the pylsl and LabRecorder components, whose
15+
upstreams are MIT. The component sits in this repository as an aggregate under
16+
GPLv3 section 5; the proprietary Secure LSL license does not extend to it. See
17+
COMPONENT LICENSING POLICY in the repository-root `LICENSE`.
18+
19+
## Note for review
20+
21+
SigVisualizer imports the in-repo `pylsl` component and, at the user's runtime,
22+
loads `liblsl-secure` (proprietary) through `ctypes`. Whether distributing a
23+
GPLv3 application alongside a proprietary library it loads at runtime creates
24+
any obligation is a question for UCSD OIC rather than one resolved here; it is
25+
the same question that already applies to the drop-in library-replacement route.
26+
Co-location itself is mere aggregation under GPLv3 section 5.
27+
28+
## Upstream tracking
29+
30+
- Upstream: https://github.com/labstreaminglayer/App-SigVisualizer
31+
- Based on upstream commit: `aa754e6`
32+
- Security integration: `lsl_security_helper.py` (a pylsl compatibility shim),
33+
security-status display in `paintwidget.py`, and mismatch detection
34+
35+
## Behavior against a stock liblsl
36+
37+
The security queries are optional. Against a stock `liblsl` that does not export
38+
them, the helper reports security unavailable and the application runs as
39+
upstream does.

‎apps/SigVisualizer/LICENSE‎

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

‎apps/SigVisualizer/LSL_sender.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import time
2+
from random import random as rand
3+
from pylsl import StreamInfo, StreamOutlet
4+
5+
info = StreamInfo('BioSemi', 'EEG', 8, 100, 'float32', 'myuid34234')
6+
outlet = StreamOutlet(info)
7+
8+
print("now sending data...")
9+
while True:
10+
mysample = [rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand()]
11+
outlet.push_sample(mysample)
12+
time.sleep(0.01)

‎apps/SigVisualizer/README.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# SigVisualizer
2+
3+
SigVisualizer is a PyQt5 GUI application that visualizes electroencephalogram signals streamed from [__lab streaming layer__ (LSL)](https://github.com/sccn/labstreaminglayer "LabStreamingLayer (LSL)") in real time.
4+
5+
## Requirements
6+
* Python 3.x
7+
* PyQt5
8+
9+
![image](SigVisualizer_demo.gif)
10+
11+
## License
12+
13+
GNU General Public License v3.0; see [LICENSE](LICENSE).
14+
15+
This component is the [SigVisualizer](https://github.com/labstreaminglayer/App-SigVisualizer)
16+
application with security-status support added, distributed as a component of
17+
the Secure LSL monorepo. Its upstream is GPLv3, so this component remains GPLv3,
18+
and the security integration added here (which reads stream security status
19+
through the public LSL API and contains no cryptographic implementation) is
20+
likewise GPLv3. It is aggregated with the other components under GPLv3 section 5;
21+
see COMPONENT LICENSING POLICY in the repository-root LICENSE.
1.79 MB
Loading

‎apps/SigVisualizer/createUI.bat‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"C:\Users\Yida Lin\AppData\Local\Programs\Python\Python37\Scripts\pyuic5.exe" -x ui_sigvisualizer.ui -o ui_sigvisualizer.py
Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)