mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
pep8
This commit is contained in:
1 parent
4d026afb2c
commit
c60a0938eb
4 files changed
+12
-10
No files matched your search
@@ -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):
|
||||
|
||||
+6
-4
@@ -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"]:
|
||||
|
||||
Reference in new issue
Block a user