print "file ", file_name
print " --------------------------------- "
-my_paravis.ImportFile(file_name)
+OpenDataFile(file_name)
proxy = GetActiveSource()
if proxy is None:
raise RuntimeError("Error: can't import file.")
print "file ", file_name
print " --------------------------------- "
-my_paravis.ImportFile(file_name)
+OpenDataFile(file_name)
proxy = GetActiveSource()
if proxy is None:
raise RuntimeError("Error: can't import file.")
print "file ", file_name
print " --------------------------------- "
-my_paravis.ImportFile(file_name)
+OpenDataFile(file_name)
proxy = GetActiveSource()
if proxy is None:
raise RuntimeError("Error: can't import file.")
print "file ", file_name
print " --------------------------------- "
-my_paravis.ImportFile(file_name)
+OpenDataFile(file_name)
proxy = GetActiveSource()
if proxy is None:
raise RuntimeError("Error: can't import file.")
print "file ", file_name
print " --------------------------------- "
-myParavis.ImportFile(file_name)
+OpenDataFile(file_name)
proxy = GetActiveSource()
if proxy is None:
raise RuntimeError("Error: can't import file.")
print "file ", file_name
print " --------------------------------- "
-my_paravis.ImportFile(file_name)
+OpenDataFile(file_name)
proxy = GetActiveSource()
if proxy is None:
raise RuntimeError("Error: can't import file.")
print "file ", file_name
print " --------------------------------- "
-my_paravis.ImportFile(file_name)
+OpenDataFile(file_name)
proxy = GetActiveSource()
if proxy is None:
raise RuntimeError("Error: can't import file.")
print "file ", file_name
print " --------------------------------- "
-my_paravis.ImportFile(file_name)
+OpenDataFile(file_name)
proxy = GetActiveSource()
if proxy is None:
raise RuntimeError("Error: can't import file.")
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
proxy = GetActiveSource()
if proxy is None:
raise RuntimeError("Error: can't import file.")
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
proxy = GetActiveSource()
if proxy is None:
raise RuntimeError("Error: can't import file.")
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
# 1. TimeStamps.med import
print 'Importing "TimeStamps.med"................',
file_path = datadir + "TimeStamps.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = GetActiveSource()
if med_reader is None:
print "FAILED"
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print "file ", theFileName
print " --------------------------------- "
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
"""Build presentations of the given types for all fields of the given file."""
#print "Import %s..." % theFileName.split('/')[-1],
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print 'Import "ResOK_0000.med"...............',
file_path = datadir + "ResOK_0000.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
"""Build presentations of the given types for all fields of the given file."""
#print "Import %s..." % theFileName.split('/')[-1],
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print 'Import "Tria3.med"....................',
file_path = datadir + "Tria3.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
print 'Import "Hexa8.med"....................',
file_path = datadir + "Hexa8.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
"""Build presentations of the given types for all fields of the given file."""
#print "Import %s..." % theFileName.split('/')[-1],
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
field_name = "pression_elem_dom_pb1"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
#field_name = "fieldcelldoublevector"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "scalar field"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "scalar field"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "scalar field"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "scalar field"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "scalar field"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "scalar field"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "AREA"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "fieldcelldouble"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "RN_precipite_restr"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "Head"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "pH"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "Am241_restriction"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "Head"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "erreur"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "Conc. I129"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "Head"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "Head"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "head_restriction"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "Conc. I129"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "DarcyVelocity"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "Concentration_O2(aq)_mol per l"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_names = ["REMEUN__ERRE_ELGA_NORE__________", "REMEZEROERRE_ELGA_NORE__________"]
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "champ_reel"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_names = ["REMEUN__ERRE_ELGA_NORE__________", "REMEZEROERRE_ELGA_NORE__________"]
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_names = ["REMEUN__ERRE_ELGA_NORE__________", "REMEZEROERRE_ELGA_NORE__________"]
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
#timestamp_nb = 1
timestamp_nb = 6 # timestamp 1 is empty
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
field_name = "RESPIL__SIEF_ELGA"
timestamp_nb = -1 # last timestamp
-paravis.myParavis.ImportFile(file_name)
+paravis.OpenDataFile(file_name)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError("File wasn't imported!!!")
"""Build presentations of the given types for all fields of the given file."""
#print "Import %s..." % theFileName.split('/')[-1],
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print " --------------------------------- "
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
#print "Import %s..." % theFileName.split('/')[-1],
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
print 'Import "ResOK_0000.med"...............',
file_path = datadir + "ResOK_0000.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
print 'Import "Fields_group3D.med"...............',
file_path = datadir + "Fields_group3D.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader1 = pvsimple.GetActiveSource()
if med_reader1 is None:
print 'Importing "TimeStamps.med"...............',
file_path = datadir + "TimeStamps.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
entity = EntityType.NODE
timestamp = 1
-my_paravis.ImportFile(med_file)
+OpenDataFile(med_file)
med_reader = pvsimple.GetActiveSource()
entity = EntityType.NODE
timestamp = 2
-my_paravis.ImportFile(med_file)
+OpenDataFile(med_file)
med_reader = pvsimple.GetActiveSource()
isosurf = IsoSurfacesOnField(med_reader, entity, field_name, timestamp)
field_name = 'vitesse'
node_entity = EntityType.NODE
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
field_name = 'VITESSE'
pvsimple.SetActiveSource(None)
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
entity = EntityType.NODE
timestamp = 1
-my_paravis.ImportFile(med_file)
+OpenDataFile(med_file)
med_reader = pvsimple.GetActiveSource()
entity = EntityType.NODE
timestamp = 2
-my_paravis.ImportFile(med_file)
+OpenDataFile(med_file)
med_reader = pvsimple.GetActiveSource()
isosurf = IsoSurfacesOnField(med_reader, entity, field_name, timestamp)
# Import MED file
med_file_path = datadir + "pointe.med"
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
# Step 1
print 'Importing "pointe.med"...............',
file_path = datadir + "pointe.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
entity = EntityType.NODE
timestamp = 1
-my_paravis.ImportFile(med_file)
+OpenDataFile(med_file)
med_reader = pvsimple.GetActiveSource()
# Create presentations
print 'Importing "fra.med"...',
file_path = datadir + "fra.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
"""Build presentations of the given types for all fields of the given file."""
#print "Import %s..." % theFileName.split('/')[-1],
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
proxy = GetActiveSource()
if proxy is None:
raise RuntimeError, "Error: can't import file."
#====================Stage1: Import MED file=========================
print 'Importing "fra.med"...................',
medFile = datadir + "fra.med"
-my_paravis.ImportFile(medFile)
+OpenDataFile(medFile)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
# 1. Import MED file
print 'Import "ResOK_0000.med"...............',
file_path = datadir + "ResOK_0000.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
print "FAILED"
# Import of the "Bug829_resu_mode.med" file
file_path = datadir + "Bug829_resu_mode.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
# 1. Import MED file
file_path = datadir + "new_case.rmed"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError, "new_case.rmed was not imported!!!"
print 'Import "ResOK_0000.med"...............',
medFile = datadir + "ResOK_0000.med"
-my_paravis.ImportFile(medFile)
+OpenDataFile(medFile)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
"""Build presentations of the given types for all fields of the given file."""
#print "Import %s..." % theFileName.split('/')[-1],
-result = myParavis.ImportFile(theFileName)
+result = OpenDataFile(theFileName)
aProxy = GetActiveSource()
if aProxy is None:
raise RuntimeError, "Error: can't import file."
# 1. Import MED file
print 'Importing "hydro_sea_alv.med"...',
file_path = datadir + "hydro_sea_alv.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
pic_path = os.path.join(picturedir, "A1." + pictureext)
# 1. Import MED file
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
# 2. Create mesh
print "BREAKPOINT_1"
# 1. Import MED file
print 'Importing "carre_MIXTE_0000.med"...',
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
# 1. Import MED file
med_file_path = datadir + "hexa_28320_ELEM.med"
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
# 2. Create vectors
# 1. Import MED file
med_file_path = datadir + "carre_ELEM_0000.med"
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
# 2. Create vectors
save_file = tmp_dir + "/TimeStamps_save.hdf"
print "Save to file ", save_file
-paravis.myParavis.ImportFile(data_file)
+paravis.OpenDataFile(data_file)
myStudyManager.SaveAs(save_file, myStudy, 0)
myStudyManager.Close(myStudy)
openedStudy = myStudyManager.Open(data_file)
# 1. Import MED file
print 'Importing "fra.med"....',
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
print 'Import "sortie_med_volumique.med"...............',
file_path = datadir + "sortie_med_volumique_v3.0.6.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
med_file_path = datadir + "resultat.01.med"
print 'Importing "resultat.01.med"....',
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
med_file_path = datadir + "MEDfileForStructuredMesh.med"
print 'Importing "MEDfileForStructuredMesh.med"....',
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
med_file_path = datadir + "forma01f.resu.med"
print 'Importing "forma01f.resu.med"....',
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
def loadData(self, medFile, meshName=None, myEntity=EntityType.NODE):
self.medFile = medFile
- my_paravis.ImportFile(medFile)
+ OpenDataFile(medFile)
self.myData = pvsimple.GetActiveSource()
self.myEntity = myEntity
if meshName is not None:
med_file_path = datadir + "relachement_brutal_sans_dudg_gauss.med"
print 'Importing "relachement_brutal_sans_dudg_gauss.med"....',
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
med_file_path = datadir + "Bug583-Quadratique.resu.med"
print 'Importing "Bug583-Quadratique.resu.med"....',
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
# 1. Import MED file
med_file_path = datadir + "TimeStamps.med"
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
# 1. Import of the "Bug619-result_calcul_OCC.med" file
med_file_path = datadir + "Bug619-result_calcul_OCC.med"
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
# 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!!!"
# 1. Import of the "LinearStaticsSTA9.resu.med" file
med_file_path = datadir + "LinearStaticsSTA9.resu.med"
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError, "LinearStaticsSTA9.resu.med was not imported!!!"
# 1. Import MED file
med_file_path = datadir + "fra.med"
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
# 2. Creation of CutSegment presentations, based on time stamps of "VITESSE" field
print 'Importing "Fields_group3D.med"........',
med_file_path = datadir + "Fields_group3D.med"
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
print "FAILED"
# 1. MED file import
print 'Import "ResOK_0000.med"...............',
med_file_path = datadir + "ResOK_0000.med"
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError, "ResOK_0000.med was not imported!!!"
# 1. TimeStamps.med import
file_path = datadir + "TimeStamps.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = GetActiveSource()
if med_reader is None :
raise RuntimeError, "TimeStamps.med wasn't imported..."
# 1. TimeStamps.med import
file_path = datadir + "TimeStamps.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = GetActiveSource()
if med_reader is None :
raise RuntimeError, "TimeStamps.med wasn't imported..."
# 1. TimeStamps.med import
file_path = datadir + "TimeStamps.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = GetActiveSource()
if med_reader is None :
raise RuntimeError, "TimeStamps.med wasn't imported..."
# 1. TimeStamps.med import
file_path = datadir + "TimeStamps.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = GetActiveSource()
if med_reader is None :
raise RuntimeError, "TimeStamps.med wasn't imported..."
# 1. TimeStamps.med import
file_path = datadir + "TimeStamps.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = GetActiveSource()
if med_reader is None :
raise RuntimeError, "TimeStamps.med wasn't imported..."
# 1. TimeStamps.med import
file_path = datadir + "fra.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = GetActiveSource()
if med_reader is None :
raise RuntimeError, "TimeStamps.med wasn't imported..."
# 1. TimeStamps.med import
file_path = datadir + "TimeStamps.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = GetActiveSource()
if med_reader is None:
raise RuntimeError, "TimeStamps.med wasn't imported..."
# 1. TimeStamps.med import
file_path = datadir + "TimeStamps.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = GetActiveSource()
if med_reader is None :
raise RuntimeError, "TimeStamps.med wasn't imported..."
# 1. TimeStamps.med import
file_path = datadir + "TimeStamps.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = GetActiveSource()
if med_reader is None :
raise RuntimeError, "TimeStamps.med wasn't imported..."
# 1. TimeStamps.med import
file_path = datadir + "TimeStamps.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = GetActiveSource()
if med_reader is None :
raise RuntimeError, "TimeStamps.med wasn't imported..."
# 1. TimeStamps.med import
file_path = datadir + "TimeStamps.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = GetActiveSource()
if med_reader is None :
raise RuntimeError, "TimeStamps.med wasn't imported..."
# 1. Import of the "Penta6.med" file
print 'Import "Penta6.med" file........',
file_path = datadir + "Penta6.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
raise RuntimeError, "Penta6.med was not imported!!!"
# 1. Import MED file
print 'Import "pointe.med"....................',
med_file_path = datadir + med_file
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
# Import MED file
file_path = datadir + "fra.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
# Import MED file
med_file_path = datadir + "fra.med"
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
# Import MED file
file_path = datadir + "Bug891_Box.resu.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
# Import MED file
file_path = datadir + "fra.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
entity = EntityType.NODE
print 'Import "ResOK_0000.med"...............',
file_path = datadir + "ResOK_0000.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
print 'Import "ResOK_0000.med"...',
file_path = datadir + "ResOK_0000.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
print 'Import "Fields_group3D.med"...............',
file_path = datadir + "Fields_group3D.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader1 = pvsimple.GetActiveSource()
if med_reader1 is None:
print 'Import "fra.med"....................',
file_path = datadir + "fra.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
print 'Import "Hexa8.med"....................',
file_path = datadir + "Hexa8.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader1 = pvsimple.GetActiveSource()
if med_reader1 is None:
print 'Importing file "cube_hexa8_quad4.med".',
file_path = datadir + "cube_hexa8_quad4.med"
mesh_name2 = 'CUBE_EN_HEXA8_QUAD4'
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader2 = pvsimple.GetActiveSource()
if med_reader2 is None:
print 'Importing file "Penta6.med"...........',
file_path = datadir + "Penta6.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader3 = pvsimple.GetActiveSource()
if med_reader3 is None:
print 'Importing "Quad4.med".................',
file_path = datadir + "Quad4.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader4 = pvsimple.GetActiveSource()
if med_reader4 is None:
print 'Importing "Tetra4.med"................',
file_path = datadir + "Tetra4.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader5 = pvsimple.GetActiveSource()
if med_reader5 is None:
print 'Importing "Tria3.med".................',
file_path = datadir + "Tria3.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader6 = pvsimple.GetActiveSource()
if med_reader6 is None:
print 'Import "ResOK_0000.med"...............',
file_path = datadir + "ResOK_0000.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None:
# 1. Import MED file
file_path = datadir + "TimeStamps.med"
-my_paravis.ImportFile(file_path)
+OpenDataFile(file_path)
med_reader = pvsimple.GetActiveSource()
if med_reader is None: