Skip to content

Commit

Permalink
fix: use float values in sun intensity and rainbow wavelenghts
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrYxZ committed Dec 28, 2020
1 parent 2d5e783 commit 08dca46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
[-0.9692660, 1.8760108, 0.0415560],
[0.0556434, -0.2040259, 1.0572252]
])
SUNLIGHT = np.array([750, 1234, 1419, 1395, 1338, 1344, 1289])
RAINBOW_WAVELENGHTS = np.array([400, 445, 475, 510, 570, 590, 650])
SUNLIGHT = np.array([750, 1234, 1419, 1395, 1338, 1344, 1289], dtype=float)
RAINBOW_WAVELENGHTS = np.array([400, 445, 475, 510, 570, 590, 650], dtype=float)

0 comments on commit 08dca46

Please sign in to comment.