Compare commits

...
Author SHA1 Message Date
Pierre-Antoine Rouby f4ca2650e5 Some hot fix. 2024-01-30 13:04:53 +01:00
Pierre-Antoine Rouby 1d0aded01d HS: input_pk hot fix. 2024-01-30 10:32:50 +01:00
3 changed files with 8 additions and 1 deletions

No files matched your search

+2
View File
@@ -287,12 +287,14 @@ class MeshingWithMageMailleurTT(AMeshingTool):
return reach
with tempfile.TemporaryDirectory() as tmp:
logger.debug(f"temp file: {tmp}")
st_file = self.export_reach_to_st(reach, tmp)
m_file = st_file.rsplit(".ST", 1)[0] + ".M"
proc = QProcess()
proc.setWorkingDirectory(tmp)
logger.debug(f"mailleurTT '{st_file}, {m_file}, {str(step)}'")
proc.start(
self._exe_path(), [st_file, m_file, str(step)]
)
@@ -200,7 +200,10 @@ class HydraulicStructure(SQLSubModel):
@input_kp.setter
def input_kp(self, input_kp):
self._input_kp = float(input_kp)
if input_kp is not None:
input_kp = float(input_kp)
self._input_kp = input_kp
self._status.modified()
@property
+2
View File
@@ -507,6 +507,8 @@ class Mage(CommandLineSolver):
name = bhs.name
if name == "":
name = f"HS_{bhs.id:>3}".replace(" ", "0")
else:
name = name.replace(" ", "_")
f.write(
f"{sin_dict[bhs._type]} " +