Salome HOME
#22153: Progress bar missing
[modules/paravis.git] / src / PV_SWIG / presentations.py
index a9f26e1455b7624bbbab78dbaf1971b099dab57a..f2b39558bea323e9543e2c245b59988333d9e776 100644 (file)
@@ -673,9 +673,9 @@ def get_calc_magnitude(proxy, array_entity, array_name):
     nb_components = get_nb_components(proxy, array_entity, array_name)
     if (nb_components > 1):
         calculator = pv.Calculator(proxy)
-        attribute_mode = "point_data"
+        attribute_mode = "Point Data"
         if array_entity != EntityType.NODE:
-            attribute_mode = "cell_data"
+            attribute_mode = "Cell Data"
         calculator.AttributeMode = attribute_mode
         if (nb_components == 2):
             # Workaroud: calculator unable to compute magnitude
@@ -706,9 +706,9 @@ def get_add_component_calc(proxy, array_entity, array_name):
     nb_components = get_nb_components(proxy, array_entity, array_name)
     if nb_components == 2:
         calculator = pv.Calculator(proxy)
-        attribute_mode = "point_data"
+        attribute_mode = "Point Data"
         if array_entity != EntityType.NODE:
-            attribute_mode = "cell_data"
+            attribute_mode = "Cell Data"
         calculator.AttributeMode = attribute_mode
         expression = "iHat * " + array_name + "_X + jHat * " + array_name + "_Y + kHat * 0"
         calculator.Function = expression