]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Porting to Paraview 3.98.1 V7_1_0b1
authorvtn <vtn@opencascade.com>
Mon, 4 Mar 2013 13:44:43 +0000 (13:44 +0000)
committervtn <vtn@opencascade.com>
Mon, 4 Mar 2013 13:44:43 +0000 (13:44 +0000)
src/PV_SWIG/presentations.py

index d5ead463846d55327800e997e44b08ee1b923d1f..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