Remove assert statements from production code
This commit is contained in:
parent
6d8cb299aa
commit
ef89b536fc
3 changed files with 7 additions and 8 deletions
|
|
@ -38,7 +38,8 @@ def set_static_lst(
|
|||
adaptive tweaking by the algorithm.
|
||||
"""
|
||||
for table in luminance, cr, cb:
|
||||
assert np.array(table).shape == (12, 16), "Lens shading tables must be 12x16!"
|
||||
if np.array(table).shape != (12, 16):
|
||||
raise ValueError("Lens shading tables must be 12x16!")
|
||||
alsc = Picamera2.find_tuning_algo(tuning, "rpi.alsc")
|
||||
alsc["n_iter"] = 0 # disable the adaptive part
|
||||
alsc["luminance_strength"] = 1.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue