Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions LICENCE → LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright [yyyy] Les Wright

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -198,4 +198,4 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
23 changes: 23 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
PySpectrometer2 Refactor

Copyright 2025 Gomills

This product mostly includes software developed by Les Wright (https://github.com/leswright1977/PySpectrometer2).

Original PySpectrometer2 Copyright Notice:
Copyright [Original Year] Les Wright

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This is a derivative work based on PySpectrometer2, with modifications
to modernize the codebase, improve structure, and add new features.
390 changes: 120 additions & 270 deletions README.md

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2025 Les Wright
# Contributor 2025: Gomills
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from src.pyspectrometer_picam2 import start_spectrometer

if __name__ == "__main__":
start_spectrometer(config_path="src/config/config.json")
Binary file removed media/Screenshot_2022-10-16_14-41-14.png
Binary file not shown.
Binary file removed media/Screenshot_2022-10-16_14-43-11.png
Binary file not shown.
Binary file removed media/calibrated.png
Binary file not shown.
Binary file removed media/console.png
Binary file not shown.
Binary file removed media/csv.png
Binary file not shown.
Binary file removed media/high-pressure-sodium.png
Binary file not shown.
1 change: 0 additions & 1 deletion media/media.lst

This file was deleted.

Binary file removed media/mini.png
Binary file not shown.
Binary file removed media/minispect.png
Binary file not shown.
Binary file removed media/parts.png
Binary file not shown.
Binary file removed media/pi.png
Binary file not shown.
Binary file removed media/pointsadded.png
Binary file not shown.
Binary file removed media/scope.png
Binary file not shown.
Binary file removed media/spectrum-20221013--210412.png
Binary file not shown.
Binary file removed media/spectrum-20221016--144134.png
Binary file not shown.
Binary file removed media/spectrum-20221016--144215.png
Binary file not shown.
Binary file removed media/spectrum-20221016--144325.png
Binary file not shown.
Binary file removed media/spectrum-20221016--144355.png
Binary file not shown.
Binary file removed media/terbium-measure.png
Binary file not shown.
Binary file removed media/uncal.png
Binary file not shown.
Binary file removed media/waterfall-20221013--205708.png
Binary file not shown.
Binary file removed media/waterfall-20221013--205840.png
Binary file not shown.
Binary file removed media/waterfall-20221013--210412.png
Binary file not shown.
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[project]
name = "PySpectrometer2.1"
version = "0.1.0"
description = "PySpectrometer2.1"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"numpy>=2.2.6",
"opencv-python>=4.12.0.88",
"picamera2>=0.3.30",
"pydantic>=2.11.7",
]
Loading