# 1. Import of the "Bug829_resu_mode.med" file at first time
med_file_path = datadir + "Bug829_resu_mode.med"
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader1 = pvsimple.GetActiveSource()
if med_reader1 is None:
raise RuntimeError, "Bug829_resu_mode.med was not imported!!!"
raise RuntimeError
# 3. Import of the "Bug829_resu_mode.med" file at second time
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader2 = pvsimple.GetActiveSource()
if med_reader2 is None:
raise RuntimeError, "Bug829_resu_mode.med was not imported second time!!!"