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
Addition of MEDFileUMesh.__getitem__ in python bindings to ease fetch of MEDCouplingU...
[tools/medcoupling.git]
/
src
/
MEDLoader
/
Swig
/
medutilities.py
diff --git
a/src/MEDLoader/Swig/medutilities.py
b/src/MEDLoader/Swig/medutilities.py
index 06fa149f6ac805740541191c1003eeef64189691..64c541868e1b1caf483606636390ea181d97a867 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-201
4
CEA/DEN, EDF R&D
+# Copyright (C) 2009-201
5
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
@@
-49,7
+49,7
@@
def convert(file_in, driver_in, driver_out, format=1, file_out=None):
#
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