mirror of https://gitlab.com/pamhyr/pamhyr2
parent
4d026afb2c
commit
c60a0938eb
|
|
@ -128,7 +128,7 @@ class AdisTS(CommandLineSolver):
|
||||||
repertory, f"{name}.REP"
|
repertory, f"{name}.REP"
|
||||||
), "w+"
|
), "w+"
|
||||||
) as f:
|
) as f:
|
||||||
path = os.path.join("..",mage_rep,name)
|
path = os.path.join("..", mage_rep, name)
|
||||||
f.write(f"NET {path}.NET\n")
|
f.write(f"NET {path}.NET\n")
|
||||||
f.write(f"REP {path}.REP\n")
|
f.write(f"REP {path}.REP\n")
|
||||||
|
|
||||||
|
|
@ -140,7 +140,7 @@ class AdisTS(CommandLineSolver):
|
||||||
|
|
||||||
path_mage_net = os.path.join(os.path.abspath(
|
path_mage_net = os.path.join(os.path.abspath(
|
||||||
os.path.join(repertory, os.pardir)
|
os.path.join(repertory, os.pardir)
|
||||||
), os.path.join(mage_rep,"net"))
|
), os.path.join(mage_rep, "net"))
|
||||||
path_adists_net = os.path.join(repertory, "net")
|
path_adists_net = os.path.join(repertory, "net")
|
||||||
|
|
||||||
if os.path.exists(path_mage_net):
|
if os.path.exists(path_mage_net):
|
||||||
|
|
|
||||||
|
|
@ -1045,9 +1045,11 @@ class Mage8(Mage):
|
||||||
|
|
||||||
# check results and geometry consistency
|
# check results and geometry consistency
|
||||||
for i, r in enumerate(reachs):
|
for i, r in enumerate(reachs):
|
||||||
if len(r.profiles) != profile_len[i]:
|
lp = len(r.profiles)
|
||||||
logger.warning(f"geometry reach {i} has {len(r.profiles)} profiles")
|
pl = profile_len[i]
|
||||||
logger.warning(f"results reach {i} has {profile_len[i]} values")
|
if lp != pl:
|
||||||
|
logger.warning(f"geometry reach {i} has {lp} profiles")
|
||||||
|
logger.warning(f"results reach {i} has {pl} values")
|
||||||
return
|
return
|
||||||
|
|
||||||
ts = set()
|
ts = set()
|
||||||
|
|
@ -1059,7 +1061,7 @@ class Mage8(Mage):
|
||||||
f, dtype=np.byte, count=1)).decode()
|
f, dtype=np.byte, count=1)).decode()
|
||||||
data = read_float(n)
|
data = read_float(n)
|
||||||
|
|
||||||
#logger.debug(f"read_bin: timestamp = {timestamp} sec")
|
# logger.debug(f"read_bin: timestamp = {timestamp} sec")
|
||||||
ts.add(timestamp)
|
ts.add(timestamp)
|
||||||
|
|
||||||
if key in ["Z", "Q"]:
|
if key in ["Z", "Q"]:
|
||||||
|
|
|
||||||
|
|
@ -275,7 +275,7 @@ class InitialConditionsWindow(PamhyrWindow):
|
||||||
|
|
||||||
if filename != "":
|
if filename != "":
|
||||||
size = os.stat(filename).st_size
|
size = os.stat(filename).st_size
|
||||||
#self._table.import_geometry(0, filename)
|
# self._table.import_geometry(0, filename)
|
||||||
print(f"filename: {filename}")
|
print(f"filename: {filename}")
|
||||||
self._import_from_file(filename)
|
self._import_from_file(filename)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue