#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
from paravistest import datadir, delete_with_inputs
from presentations import *
from paravistest import datadir, delete_with_inputs
from presentations import *
-my_paravis = paravis.myParavis
+GetActiveViewOrCreate('RenderView')
+
+config = smtrace.start_trace()
+config.SetFullyTraceSupplementalProxies(True)
+config.SetPropertiesToTraceOnCreate(config.RECORD_ALL_PROPERTIES)
settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation", "UseLogScale": 1, "Orientation": 'Horizontal', "Scale": 0.12929}
# 1. TimeStamps.med import
file_path = datadir + "TimeStamps.med"
settings = {"Offset": [0.0001, 0.0002, 0], "ScalarMode": ("Component", 2), "Position": [0.1, 0.2], "Size": [0.15, 0.25], "Discretize": 1, "NbColors": 44, "NbLabels": 22, "Title": "My presentation", "UseLogScale": 1, "Orientation": 'Horizontal', "Scale": 0.12929}
# 1. TimeStamps.med import
file_path = datadir + "TimeStamps.med"
med_reader = GetActiveSource()
if med_reader is None:
raise RuntimeError, "TimeStamps.med wasn't imported..."
med_reader = GetActiveSource()
if med_reader is None:
raise RuntimeError, "TimeStamps.med wasn't imported..."
med_field = "vitesse"
prs = DeformedShapeAndScalarMapOnField(med_reader, EntityType.NODE, med_field, 1)
med_field = "vitesse"
prs = DeformedShapeAndScalarMapOnField(med_reader, EntityType.NODE, med_field, 1)
if abs(cur_range_max - range_max) > tolerance:
print "ERROR!!! Maximum value of range of presentation is incorrect: ", cur_range_max, " instead of ", range_max
errors += 1
if abs(cur_range_max - range_max) > tolerance:
print "ERROR!!! Maximum value of range of presentation is incorrect: ", cur_range_max, " instead of ", range_max
errors += 1