Dumped script is wrong?
- ishmael
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
16 years 10 months ago #1871
by ishmael
Dumped script is wrong? was created by ishmael
I already posted in the salome forum at salome-platform.org, but I'm searchin for help here in Caelinux as well.Sorry for X-posting:
, I'm using a SALOME-MECA 2008 (3.2.9) install on a Ubuntu 7.10 pc.
I've followed the installation procedure, and everything seems to work, but I have a very strange issue with the dump script function: if I dump a python script of a study (geometry and mesh) and I try to reload the script in a new study, it doesn't work. For example in one of my test I have the following error:
[code:1]
>>> execfile("/home/andrea/job/flange3D/flange3DscriptR02.py"«»)
Traceback (most recent call last):
File "<input>", line 1, in ?
File "/home/andrea/job/flange3D/flange3DscriptR02.py", line 29, in ?
flange3DscriptR02_GEOM.RebuildData(salome.myStudy)
File "/home/andrea/job/flange3D/flange3DscriptR02_GEOM.py", line 21, in RebuildData
geomObj_34 = geompy.GetSubShape(geomObj_35, [88])
NameError: global name 'geomObj_35' is not defined
[/code:1]
And, actually, if I have a look at the _GEOM.py script I can see that the geomObj_35 is really not defined:
[code:1][..]
geomObj_32 = geompy.GetSubShape(Wire_1, [10])
geomObj_33 = geompy.GetSubShape(Wire_1, [10])
geomObj_34 = geompy.GetSubShape(geomObj_35, [88])
geomObj_36 = geompy.GetSubShape(geomObj_35, [82])
geomObj_37 = geompy.GetSubShape(geomObj_35, [60])
geomObj_38 = geompy.GetSubShape(geomObj_35, [38])
geomObj_39 = geompy.GetSubShape(Revolution_1, [6])
[..][/code:1]
It is my understanding that dumping a script, and reloading it should lead to the same result of the starting file. Am I wrong? In addition, in another model I made I noticed that the meshing ipothesis Projection2D was incorrectly written: the target and source vertexs where swapped, and the mesh did not work, once I reloaded it.
I'm very puzzled with this issue, it seems to me a but too big to be true, maybe I'm doing something wrong.
Any help would be greatly appreciated. Thanks in advance,
Andrea
, I'm using a SALOME-MECA 2008 (3.2.9) install on a Ubuntu 7.10 pc.
I've followed the installation procedure, and everything seems to work, but I have a very strange issue with the dump script function: if I dump a python script of a study (geometry and mesh) and I try to reload the script in a new study, it doesn't work. For example in one of my test I have the following error:
[code:1]
>>> execfile("/home/andrea/job/flange3D/flange3DscriptR02.py"«»)
Traceback (most recent call last):
File "<input>", line 1, in ?
File "/home/andrea/job/flange3D/flange3DscriptR02.py", line 29, in ?
flange3DscriptR02_GEOM.RebuildData(salome.myStudy)
File "/home/andrea/job/flange3D/flange3DscriptR02_GEOM.py", line 21, in RebuildData
geomObj_34 = geompy.GetSubShape(geomObj_35, [88])
NameError: global name 'geomObj_35' is not defined
[/code:1]
And, actually, if I have a look at the _GEOM.py script I can see that the geomObj_35 is really not defined:
[code:1][..]
geomObj_32 = geompy.GetSubShape(Wire_1, [10])
geomObj_33 = geompy.GetSubShape(Wire_1, [10])
geomObj_34 = geompy.GetSubShape(geomObj_35, [88])
geomObj_36 = geompy.GetSubShape(geomObj_35, [82])
geomObj_37 = geompy.GetSubShape(geomObj_35, [60])
geomObj_38 = geompy.GetSubShape(geomObj_35, [38])
geomObj_39 = geompy.GetSubShape(Revolution_1, [6])
[..][/code:1]
It is my understanding that dumping a script, and reloading it should lead to the same result of the starting file. Am I wrong? In addition, in another model I made I noticed that the meshing ipothesis Projection2D was incorrectly written: the target and source vertexs where swapped, and the mesh did not work, once I reloaded it.
I'm very puzzled with this issue, it seems to me a but too big to be true, maybe I'm doing something wrong.
Any help would be greatly appreciated. Thanks in advance,
Andrea
- Joël Cugnoni
-
- Offline
- Moderator
-
16 years 10 months ago #1872
by Joël Cugnoni
Joël Cugnoni - a.k.a admin
www.caelinux.com
Replied by Joël Cugnoni on topic Re:Dumped script is wrong?
Dear Andrea,
I have also experienced the same problems so it's reproducible => a real big bug!!
Did you use any "delete" command in your model before dumping it to py script? I tried it once and thought that it could be simply caused by the program forgetting to add the "delete" action (which will change the numbering of the next objects!!).
The dump-script has always been problematic in Salome... but in order to stress this point, could you post this comment on salome-platform.org and code-aster.org (with the hdf & py script). This will at least show that the problem exist and maybe will lead to a solution!!
Good luck
Joël Cugnoni
I have also experienced the same problems so it's reproducible => a real big bug!!
Did you use any "delete" command in your model before dumping it to py script? I tried it once and thought that it could be simply caused by the program forgetting to add the "delete" action (which will change the numbering of the next objects!!).
The dump-script has always been problematic in Salome... but in order to stress this point, could you post this comment on salome-platform.org and code-aster.org (with the hdf & py script). This will at least show that the problem exist and maybe will lead to a solution!!
Good luck
Joël Cugnoni
Joël Cugnoni - a.k.a admin
www.caelinux.com
- ishmael
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
16 years 10 months ago #1873
by ishmael
Replied by ishmael on topic Re:Dumped script is wrong?
Hello Joel,
you're probably right, as I'm sure I deleted lot of unnecessary and wrong operations in my study: I'm still practicing with Salome, so I'm not still able to perform a "clean" job without errors. I already posted in the Salome forum, although it's not really very reactive.
Anyway I think it's a serious issue that should be addressed in future releases.Let's hope so.
Thanks
you're probably right, as I'm sure I deleted lot of unnecessary and wrong operations in my study: I'm still practicing with Salome, so I'm not still able to perform a "clean" job without errors. I already posted in the Salome forum, although it's not really very reactive.
Anyway I think it's a serious issue that should be addressed in future releases.Let's hope so.
Thanks
Moderators: catux
Time to create page: 0.151 seconds