diff options
author | Clemenz Portmann <portmannc@google.com> | 2022-06-17 08:55:00 -0700 |
---|---|---|
committer | Clemenz Portmann <portmannc@google.com> | 2022-06-17 08:55:00 -0700 |
commit | 313564c133564c828d6e476f55b36443deaead60 (patch) | |
tree | db5f4b467909095a205078b9b949d03a21066c72 | |
parent | 44c45a5a8ea8eca7a192c0918311b09d6447120c (diff) | |
download | cts-313564c133564c828d6e476f55b36443deaead60.tar.gz |
ITS: fix test_raw_exposure.py < bug and add logging.
bug: 235174961
Change-Id: I876abe4ea72fc754e1671353e63d75ba206e48e4
-rw-r--r-- | apps/CameraITS/tests/scene1_2/test_raw_exposure.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/CameraITS/tests/scene1_2/test_raw_exposure.py b/apps/CameraITS/tests/scene1_2/test_raw_exposure.py index 56a6fd0a433..d01f5380421 100644 --- a/apps/CameraITS/tests/scene1_2/test_raw_exposure.py +++ b/apps/CameraITS/tests/scene1_2/test_raw_exposure.py @@ -124,12 +124,12 @@ def assert_increasing_means(means, exps, sens, black_levels, white_level): white_level, max(mean)) break - if allow_under_saturated and min(mean-lower_thresh) > 0: + if allow_under_saturated and min(mean-lower_thresh) < 0: # All channel means are close to black level continue - allow_under_saturated = False # Check pixel means are increasing (with small tolerance) + logging.debug('iso: %d, exp: %.3f, means: %s', sens, exps[i-1], mean) for ch, color in enumerate(COLORS): if mean[ch] <= prev_mean[ch] * IMG_DELTA_THRESH: e_msg = f'{color} not increasing with increased exp time! ISO: {sens}, ' |