# HG changeset patch # User luca_milaz # Date 1722856527 0 # Node ID 47e7570565cfbc2d60fd9d5cae874e03331c6e12 # Parent d701439736396c9eeadd62d4a38e157bdda25d4c Uploaded diff -r d70143973639 -r 47e7570565cf marea_2/flux_to_map.py --- a/marea_2/flux_to_map.py Mon Aug 05 11:09:46 2024 +0000 +++ b/marea_2/flux_to_map.py Mon Aug 05 11:15:27 2024 +0000 @@ -841,8 +841,8 @@ """ value = abs(value) - '''if(np.round(value, 6) == 0.0): - return np.array([190, 190, 190])#grey''' + if(np.round(value, 6) == 0.0): + return np.array([np.array([190]), np.array([190]), np.array([190])]) #grey # Define the red, green, and blue color components red = np.clip(1.5 - np.abs(4 * (value - 0.75)), 0, 1)