diff --git a/src/Solver/AdisTS.py b/src/Solver/AdisTS.py index 5f325902fbd9d937177bfec2f24e69c7023cc6a4..cbae154868b5e770a0f4d4eb9e84549d6adf00b6 100644 --- a/src/Solver/AdisTS.py +++ b/src/Solver/AdisTS.py @@ -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): diff --git a/src/Solver/Mage.py b/src/Solver/Mage.py index c4696d16de6ea5e0361aa9495f940d805ea21b31..2ca7000cb9861db9f8f2d4f1f6354df9213d3870 100644 --- a/src/Solver/Mage.py +++ b/src/Solver/Mage.py @@ -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"]: diff --git a/src/View/InitialConditions/Window.py b/src/View/InitialConditions/Window.py index e96e663a3f85edac61b1a16e7d2b856171676d42..3cab24feb65237c57fc5f35b0455c7921451454f 100644 --- a/src/View/InitialConditions/Window.py +++ b/src/View/InitialConditions/Window.py @@ -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) diff --git a/src/View/MainWindow.py b/src/View/MainWindow.py index 9419699957f188ef332afd97feb31b283d83860b..35605c38eedb1d84e4fa4d93a28e25d03532eb09 100644 --- a/src/View/MainWindow.py +++ b/src/View/MainWindow.py @@ -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)