Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed unnecessary comprehension #1558

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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 plantcv/plantcv/visualize/hyper_histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def hyper_histogram(hsi, mask=None, bins=100, lower_bound=None, upper_bound=None
params.color_scale = "cool_r"
color_ = color_palette(num=256)[-154]
under_uv_colors_ = {}
for i, wv in enumerate([x for x in match_wls if x < 290]):
for i, wv in enumerate((x for x in match_wls if x < 290)):
under_uv_colors_[wv] = color_
color_dict = {**color_dict, **under_uv_colors_}
if any(290 <= x < 445 for x in match_wls):
Expand All @@ -146,7 +146,7 @@ def hyper_histogram(hsi, mask=None, bins=100, lower_bound=None, upper_bound=None
params.color_scale = "inferno"
color_ = color_palette(num=256)[-1]
above_uv_colors_ = {}
for i, wv in enumerate([x for x in match_wls if x >= 1701]):
for i, wv in enumerate((x for x in match_wls if x >= 1701)):
above_uv_colors_[wv] = color_
color_dict = {**color_dict, **above_uv_colors_}

Expand Down