Skip to content

Commit a8c9693

Browse files
update docs
1 parent ee52aeb commit a8c9693

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

PyGamer_Improved_Thermal_Camera/code.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
from thermalcamera_converters import celsius_to_fahrenheit, fahrenheit_to_celsius
2727
from thermalcamera_config import ALARM_F, MIN_RANGE_F, MAX_RANGE_F, SELFIE
2828

29-
__version__ = "0.0.0+auto.0"
30-
__repo__ = "https://github.com/CedarGroveStudios/ThermalCamera.git"
3129

3230
# Instantiate the integral display and define its size
3331
display = board.DISPLAY

PyGamer_Improved_Thermal_Camera/index_to_rgb/iron.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,18 @@ def index_to_rgb(index=0, gamma=0.5):
7272
red = 0.1
7373
grn = 0.1
7474
blu = (0.2 + (0.8 * map_range(band, 0, 70, 0.0, 1.0))) ** gamma
75-
# if band >= 70 and band < 200: # blue to violet
7675
if 70 <= band < 200: # blue to violet
7776
red = map_range(band, 70, 200, 0.0, 0.6) ** gamma
7877
grn = 0.0
7978
blu = 1.0**gamma
80-
# if band >= 200 and band < 300: # violet to red
8179
if 200 <= band < 300: # violet to red
8280
red = map_range(band, 200, 300, 0.6, 1.0) ** gamma
8381
grn = 0.0
8482
blu = map_range(band, 200, 300, 1.0, 0.0) ** gamma
85-
# if band >= 300 and band < 400: # red to orange
8683
if 300 <= band < 400: # red to orange
8784
red = 1.0**gamma
8885
grn = map_range(band, 300, 400, 0.0, 0.5) ** gamma
8986
blu = 0.0
90-
# if band >= 400 and band < 500: # orange to yellow
9187
if 400 <= band < 500: # orange to yellow
9288
red = 1.0**gamma
9389
grn = map_range(band, 400, 500, 0.5, 1.0) ** gamma

PyGamer_Improved_Thermal_Camera/index_to_rgb/visible.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,18 @@ def index_to_rgb(index=0, gamma=0.5):
4848
red = ((-1.0 * (wavelength - 440) / (440 - 380)) * intensity) ** gamma
4949
grn = 0.0
5050
blu = (1.0 * intensity) ** gamma
51-
# if wavelength >= 440 and wavelength < 490:
5251
if 440 <= wavelength < 490:
5352
red = 0.0
5453
grn = (1.0 * (wavelength - 440) / (490 - 440)) ** gamma
5554
blu = 1.0**gamma
56-
# if wavelength >= 490 and wavelength < 510:
5755
if 490 <= wavelength < 510:
5856
red = 0.0
5957
grn = 1.0**gamma
6058
blu = (-1.0 * (wavelength - 510) / (510 - 490)) ** gamma
61-
# if wavelength >= 510 and wavelength < 580:
6259
if 510 <= wavelength < 580:
6360
red = (1.0 * (wavelength - 510) / (580 - 510)) ** gamma
6461
grn = 1.0**gamma
6562
blu = 0.0
66-
# if wavelength >= 580 and wavelength < 645:
6763
if 580 <= wavelength < 645:
6864
red = 1.0**gamma
6965
grn = (-1.0 * (wavelength - 645) / (645 - 580)) ** gamma

0 commit comments

Comments
 (0)