Skip to content

Commit 6cf13c9

Browse files
authored
Fix autopep8-related syntax errors (#661)
1 parent 8270f1f commit 6cf13c9

2 files changed

Lines changed: 11 additions & 18 deletions

File tree

partitioned-heat-conduction-overlap/solver-fenics/heat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ class OverlapDomain(SubDomain):
9696
def inside(self, x, on_boundary):
9797
tol = 1E-14
9898
if (x[0] <= x_coupling + hx * (overlap_cells * 0.5) + tol) and (x[0] >= x_coupling -
99-
# Point lies inside of overlapping domain
10099
hx * (overlap_cells - 0.5) - tol):
100+
# Point lies inside of overlapping domain
101101
return True
102102
else:
103103
return False

tools/tests/systemtests/Systemtest.py

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,11 @@ def _get_length_of_name(results: List[SystemtestResult]) -> int:
8383

8484
max_name_length = _get_length_of_name(results)
8585

86-
header = f"| {
87-
'systemtest':<{
88-
max_name_length +
89-
2}} | {
90-
'success':^7} | {
91-
'building time [s]':^17} | {
92-
'solver time [s]':^15} | {
93-
'fieldcompare time [s]':^21} |"
86+
header = f"| {'systemtest':<{max_name_length + 2}} "\
87+
f"| {'success':^7} "\
88+
f"| {'building time [s]':^17} "\
89+
f"| {'solver time [s]':^15} "\
90+
f"| {'fieldcompare time [s]':^21} |"
9491
separator_plaintext = "+-" + "-" * (max_name_length + 2) + \
9592
"-+---------+-------------------+-----------------+-----------------------+"
9693
separator_markdown = "| --- | --- | --- | --- | --- |"
@@ -105,15 +102,11 @@ def _get_length_of_name(results: List[SystemtestResult]) -> int:
105102
print(separator_markdown, file=f)
106103

107104
for result in results:
108-
row = f"| {
109-
str(
110-
result.systemtest):<{
111-
max_name_length +
112-
2}} | {
113-
result.success:^7} | {
114-
result.build_time:^17.1f} | {
115-
result.solver_time:^15.1f} | {
116-
result.fieldcompare_time:^21.1f} |"
105+
row = f"| {str(result.systemtest):<{max_name_length + 2}} "\
106+
f"| {result.success:^7} "\
107+
f"| {result.build_time:^17.1f} "\
108+
f"| {result.solver_time:^15.1f} "\
109+
f"| {result.fieldcompare_time:^21.1f} |"
117110
print(row)
118111
print(separator_plaintext)
119112
if "GITHUB_STEP_SUMMARY" in os.environ:

0 commit comments

Comments
 (0)