mirror of https://gitlab.com/pamhyr/pamhyr2
debug enable hydraulic structures
parent
fd1b2b1041
commit
d871bbfc3b
|
|
@ -302,7 +302,7 @@ class MeshingWithMageMailleurTT(AMeshingTool):
|
|||
|
||||
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"
|
||||
|
||||
os.sync()
|
||||
|
|
|
|||
|
|
@ -495,6 +495,9 @@ class Mage(CommandLineSolver):
|
|||
if not hs.input_reach.is_enable():
|
||||
continue
|
||||
|
||||
if not hs.enabled:
|
||||
continue
|
||||
|
||||
if hs.input_kp is None:
|
||||
continue
|
||||
|
||||
|
|
@ -510,6 +513,7 @@ class Mage(CommandLineSolver):
|
|||
|
||||
def _export_SIN_bhs(self, study, sin_dict, hs, f):
|
||||
for bhs in hs.basic_structures:
|
||||
if bhs.enabled:
|
||||
reach_id = study.river.get_edge_id(hs.input_reach) + 1
|
||||
param_str = ' '.join(
|
||||
[
|
||||
|
|
|
|||
|
|
@ -252,8 +252,9 @@ class BasicHydraulicStructuresWindow(PamhyrWindow):
|
|||
self._checkbox.setChecked(self._hs.basic_structure(row).enabled)
|
||||
|
||||
def _set_basic_structure_state(self):
|
||||
row = self.index_selected_row()
|
||||
|
||||
rows = self.index_selected_rows()
|
||||
if len(rows) != 0:
|
||||
for row in rows:
|
||||
if row is not None:
|
||||
self._table.enabled(
|
||||
row,
|
||||
|
|
|
|||
|
|
@ -262,7 +262,9 @@ class HydraulicStructuresWindow(PamhyrWindow):
|
|||
self._checkbox.setChecked(self._hs_lst.get(row).enabled)
|
||||
|
||||
def _set_structure_state(self):
|
||||
row = self.index_selected_row()
|
||||
rows = self.index_selected_rows()
|
||||
if len(rows) != 0:
|
||||
for row in rows:
|
||||
if row is not None:
|
||||
self._table.enabled(
|
||||
row,
|
||||
|
|
|
|||
Loading…
Reference in New Issue