mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
load frictions from file
This commit is contained in:
1 parent
b582e133a1
commit
31fe765e51
7 files changed
+125
-9
No files matched your search
@@ -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("$")):
|
||||
|
||||
Reference in new issue
Block a user