changeset 304:47e7570565cf draft

Uploaded
author luca_milaz
date Mon, 05 Aug 2024 11:15:27 +0000
parents d70143973639
children 7ab74327939d
files marea_2/flux_to_map.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)