Salome HOME
projects
/
tools
/
medcoupling.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Python wrapping of MEDFileMesh.ConvertFromMEDFileGeoType
[tools/medcoupling.git]
/
src
/
MEDLoader
/
Swig
/
medutilities.py
diff --git
a/src/MEDLoader/Swig/medutilities.py
b/src/MEDLoader/Swig/medutilities.py
index 06fa149f6ac805740541191c1003eeef64189691..c9af7dbb083946d5040647c4fec2f301bda91029 100644
(file)
--- a/
src/MEDLoader/Swig/medutilities.py
+++ b/
src/MEDLoader/Swig/medutilities.py
@@
-1,6
+1,6
@@
# -*- coding: iso-8859-1 -*-
# --
# -*- coding: iso-8859-1 -*-
# --
-# Copyright (C) 2009-20
14
CEA/DEN, EDF R&D
+# Copyright (C) 2009-20
20
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
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@
-33,7
+33,7
@@
def my_remove(f):
def convert(file_in, driver_in, driver_out, format=1, file_out=None):
#
def convert(file_in, driver_in, driver_out, format=1, file_out=None):
#
- print
file_in
+ print
(file_in)
#
if file_out is None:
file_out = file_in
#
if file_out is None:
file_out = file_in
@@
-45,11
+45,11
@@
def convert(file_in, driver_in, driver_out, format=1, file_out=None):
msg = "Driver out %s is unknown"%(driver_out)
raise NotImplementedError(msg)
pass
msg = "Driver out %s is unknown"%(driver_out)
raise NotImplementedError(msg)
pass
- print
file_out
+ print
(file_out)
#
if driver_in == "GIBI":
sr = SauvReader.New(file_in)
#
if driver_in == "GIBI":
sr = SauvReader.New(file_in)
- mfd= sr.loadInMEDFileDS(
format
)
+ mfd= sr.loadInMEDFileDS()
pass
elif driver_in == "MED":
mfd = MEDFileData(file_in)
pass
elif driver_in == "MED":
mfd = MEDFileData(file_in)
@@
-110,10
+110,9
@@
def convert(file_in, driver_in, driver_out, format=1, file_out=None):
raise NotImplementedError("Driver in %s is unknown"%(driver_in))
def sauv2med(*argv):
raise NotImplementedError("Driver in %s is unknown"%(driver_in))
def sauv2med(*argv):
-
fix2DOri = ( "--fix2DOri" in argv
)
+
argv = list(argv
)
for arg in argv:
for arg in argv:
- if not arg.startswith("--fix"):
- convert(arg, "GIBI", "MED", format = fix2DOri)
+ convert(arg, "GIBI", "MED")
pass
return
pass
return