Commit f4ca2650 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Some hot fix.

Showing with 4 additions and 0 deletions
+4 -0
...@@ -287,12 +287,14 @@ class MeshingWithMageMailleurTT(AMeshingTool): ...@@ -287,12 +287,14 @@ class MeshingWithMageMailleurTT(AMeshingTool):
return reach return reach
with tempfile.TemporaryDirectory() as tmp: with tempfile.TemporaryDirectory() as tmp:
logger.debug(f"temp file: {tmp}")
st_file = self.export_reach_to_st(reach, tmp) st_file = self.export_reach_to_st(reach, tmp)
m_file = st_file.rsplit(".ST", 1)[0] + ".M" m_file = st_file.rsplit(".ST", 1)[0] + ".M"
proc = QProcess() proc = QProcess()
proc.setWorkingDirectory(tmp) proc.setWorkingDirectory(tmp)
logger.debug(f"mailleurTT '{st_file}, {m_file}, {str(step)}'")
proc.start( proc.start(
self._exe_path(), [st_file, m_file, str(step)] self._exe_path(), [st_file, m_file, str(step)]
) )
......
...@@ -507,6 +507,8 @@ class Mage(CommandLineSolver): ...@@ -507,6 +507,8 @@ class Mage(CommandLineSolver):
name = bhs.name name = bhs.name
if name == "": if name == "":
name = f"HS_{bhs.id:>3}".replace(" ", "0") name = f"HS_{bhs.id:>3}".replace(" ", "0")
else:
name = name.replace(" ", "_")
f.write( f.write(
f"{sin_dict[bhs._type]} " + f"{sin_dict[bhs._type]} " +
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment