Windows version : only one variable can be selected in mesh transform processing
When selecting multiple variables in mesh transform on Windows version, an error occurs:
Telemac script call
C:\dev\salome4telemac\q4ts\processing\script_telemac_env.bat C:\_telemac_\telemac-mascaret\configs\pysource.win.bat python C:\dev\salome4telemac\q4ts\salome_script\salome_script.py alter --vars variable 0,variable 1 --force C:\dev\salome4telemac\tests\data\simple_mesh\mesh_with_result.slf C:/Users/jmker/AppData/Local/Temp/processing_moYckj/dea9f430192c4fa08bbba1706bdd27a2/OUTPUT_MESH.slf
C:\dev\salome4telemac\q4ts\salome_script\salome_script.py alter --vars "variable 0 variable 1" --force C:\dev\salome4telemac\tests\data\simple_mesh\mesh_with_result.slf C:/Users/jmker/AppData/Local/Temp/processing_moYckj/dea9f430192c4fa08bbba1706bdd27a2/OUTPUT_MESH.slf
Salome available ? False
Telemac available ? True
~> Modif in variables:
Removing variable 0
Removing variable 1
Removing variable 2
Removing variable 3
Removing variable 4
Traceback (most recent call last):
File "C:\dev\salome4telemac\q4ts\salome_script\salome_script.py", line 196, in <module>
main()
File "C:\dev\salome4telemac\q4ts\salome_script\salome_script.py", line 189, in main
force=options.force)
File "C:\_telemac_\telemac-mascaret\scripts\python3\pretel\manip_telfile.py", line 522, in alter
outres.write()
File "C:\_telemac_\telemac-mascaret\scripts\python3\data_manip\extraction\telemac_file.py", line 1977, in write
self.write_mesh()
File "C:\_telemac_\telemac-mascaret\scripts\python3\data_manip\extraction\telemac_file.py", line 1882, in write_mesh
raise TelemacException("Missing {} in class".format(variable))
utils.exceptions.TelemacException: Missing varnames in class
It seems that ,
is removed when passing argument to batch file for telemac environnemnt.
C:\dev\salome4telemac\q4ts\salome_script\salome_script.py alter --vars "variable 0 variable 1" --force C:\dev\salome4telemac\tests\data\simple_mesh\mesh_with_result.slf C:/Users/jmker/AppData/Local/Temp/processing_moYckj/dea9f430192c4fa08bbba1706bdd27a2/OUTPUT_MESH.slf