X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FPV_SWIG%2Fpresentations.py;h=f2b39558bea323e9543e2c245b59988333d9e776;hb=fcfcc8acb86c97dd2e94b2df11b26ace167c6b9c;hp=d5ead463846d55327800e997e44b08ee1b923d1f;hpb=3e194173e979e42463ab4ee462b44529b962d680;p=modules%2Fparavis.git diff --git a/src/PV_SWIG/presentations.py b/src/PV_SWIG/presentations.py index d5ead463..f2b39558 100644 --- a/src/PV_SWIG/presentations.py +++ b/src/PV_SWIG/presentations.py @@ -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