terraz_dev v1.2.0rc0
Theophile Terraz 2025-02-13 15:10:53 +01:00
parent 4d026afb2c
commit c60a0938eb
4 changed files with 12 additions and 10 deletions

View File

@ -128,7 +128,7 @@ class AdisTS(CommandLineSolver):
repertory, f"{name}.REP"
), "w+"
) 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"REP {path}.REP\n")
@ -140,7 +140,7 @@ class AdisTS(CommandLineSolver):
path_mage_net = os.path.join(os.path.abspath(
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")
if os.path.exists(path_mage_net):

View File

@ -1045,9 +1045,11 @@ class Mage8(Mage):
# check results and geometry consistency
for i, r in enumerate(reachs):
if len(r.profiles) != profile_len[i]:
logger.warning(f"geometry reach {i} has {len(r.profiles)} profiles")
logger.warning(f"results reach {i} has {profile_len[i]} values")
lp = len(r.profiles)
pl = profile_len[i]
if lp != pl:
logger.warning(f"geometry reach {i} has {lp} profiles")
logger.warning(f"results reach {i} has {pl} values")
return
ts = set()
@ -1059,7 +1061,7 @@ class Mage8(Mage):
f, dtype=np.byte, count=1)).decode()
data = read_float(n)
#logger.debug(f"read_bin: timestamp = {timestamp} sec")
# logger.debug(f"read_bin: timestamp = {timestamp} sec")
ts.add(timestamp)
if key in ["Z", "Q"]:

View File

@ -275,7 +275,7 @@ class InitialConditionsWindow(PamhyrWindow):
if filename != "":
size = os.stat(filename).st_size
#self._table.import_geometry(0, filename)
# self._table.import_geometry(0, filename)
print(f"filename: {filename}")
self._import_from_file(filename)

View File

@ -1550,9 +1550,9 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
if self._study.filename is not None:
if self._last_solver is None:
dialog.setDirectory(
os.path.dirname(self._study.filename)
)
dialog.setDirectory(
os.path.dirname(self._study.filename)
)
else:
dialog.setDirectory(
self._solver_workdir(self._last_solver)