Commit b152a38f authored by Philippe Nguyen's avatar Philippe Nguyen
Browse files

fix sign

parent 930ab881
......@@ -405,7 +405,7 @@ def main(args):
colors = {}
for channel, darm_ratio in zip(channels, darm_ratios):
log_diff = max(-1, min(0, np.log10(darm_ratio)))
x = int(255 * (1 + log_diff))
x = -int(255 * log_diff)
# Red if ratio >= 1, white if ratio <= 0.1
colors[channel] = '#%02x%02x%02x' % (255, x, x)
#colors[channel] = "rgb(255, {0}, {0})".format(x)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment