load frictions from file

This commit is contained in:
Theophile Terraz committed 2025-09-15 15:40:17 +02:00
1 parent b582e133a1
commit 31fe765e51
7 files changed
+125 -9

No files matched your search

+3 -3
View File
@@ -214,15 +214,15 @@ class TableModel(PamhyrTableModel):
def read_from_file(self, file_name, bctype):
logger.debug(f"Import initial conditions from {file_name}")
logger.debug(f"Import boundary conditions from {file_name}")
data0 = []
data1 = []
if bctype == "ZD":
mult = 1
else:
mult = 60
with open(file_name, encoding="utf-8") as ini_file:
for line in ini_file:
with open(file_name, encoding="utf-8") as bc_file:
for line in bc_file:
if not (line.startswith("#") or
line.startswith("*") or
line.startswith("$")):