-# Copyright (C) 2010-2015 CEA/DEN, EDF R&D
+# Copyright (C) 2010-2016 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
lookup_table.LockScalarRange = 1
else:
raise RuntimeError("Object %s has no 'LockDataRange' or 'LockScalarRange' attribute!"%(lookup_table))
-
+
lookup_table.RGBPoints = [data_range[0], 0, 0, 1, data_range[1], 1, 0, 0]
# Set properties
if (scalar_range is None):
scalar_range = get_data_range(proxy, entity,
field_name, cut_off=True)
-
+
# Get contour values for the range
surfaces = get_contours(scalar_range, nb_surfaces)
# Show and dump the presentation into a graphics file
process_prs_for_test(prs, view, pic_name)
return
+
+
+def delete_pv_object(obj):
+ # There is a bug when repeating CreateRenderView/Delete calls
+ # Here is a workaround proposed by KW (#10744)
+ import gc
+ del obj
+ gc.collect()