Skip to content

Commit bea524f

Browse files
committed
Rename and organise the repo
1 parent 8412ba0 commit bea524f

4 files changed

Lines changed: 42 additions & 3 deletions

File tree

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ pyqtgraph = "*"
1414
[dev-packages]
1515

1616
[requires]
17-
python_version = "3.10"
17+
python_version = "3.8"

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# PSplot
2+
3+
*A lightweight tool for obtaining and visualising the discrete near-infrared (NIR) data using the Plastic Scanner.*
4+
5+
![PSplot screenshot](screenshot.png)
6+
7+
8+
9+
> WARNING: still in early development, not a stable release! See GitHub [issues](https://github.com/Plastic-Scanner/PSplot/issues)
10+
11+
12+
13+
## Installation
14+
15+
Requires python >=3.8, pipenv
16+
Install python dependencies (listed in Pipfile):
17+
```
18+
$ pipenv install
19+
```
20+
21+
Start the shell and run the program:
22+
```
23+
$ pipenv shell
24+
$ python psplot.py
25+
```
26+
Use `exit` or Ctrl+D to exit pipenv shell
27+
28+
29+
## Usage
30+
31+
Select the serial device from the dropdown menu on the top (e.g. /dev/ttyACM0 or COM5). Dummy data will be used when no device connected.
32+
Use spacebar to get a measurement (plot needs to be focused/clicked first, see [bug](https://github.com/Plastic-Scanner/PSplot/issues/12)).
33+
Using the "calibrate" button it performs a measurement, taken as a reference - displaying measurements between 0 and 1.
34+
35+
36+
## Contributing
37+
38+
Feel free to improve, modify and contribute to this project. It's part of the [Plastic Scanner](plasticscanner.com) open source hardware development, check out the [docs](docs.plasticscanner.com) as well!
39+

ps-spectraplot.py renamed to psplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def keyPressEvent(self, event):
6363

6464
QApplication.clipboard().setText(copy_text)
6565

66-
class Spectraplot(QMainWindow):
66+
class PsPlot(QMainWindow):
6767
def __init__(self):
6868
super().__init__()
6969

@@ -283,6 +283,6 @@ def plot(self, data):
283283
if __name__ == "__main__":
284284

285285
app = QApplication(sys.argv)
286-
window = Spectraplot()
286+
window = PsPlot()
287287
window.show()
288288
app.exec()

0 commit comments

Comments
 (0)