Skip to content

Commit 8270f1f

Browse files
committed
Format python scripts after autopep update
1 parent 58b360e commit 8270f1f

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +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-
hx * (overlap_cells - 0.5) - tol): # Point lies inside of overlapping domain
99+
# Point lies inside of overlapping domain
100+
hx * (overlap_cells - 0.5) - tol):
100101
return True
101102
else:
102103
return False

tools/tests/metadata_parser/metdata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def __repr__(self) -> str:
236236
return f"{self.name}"
237237

238238
def __hash__(self) -> int:
239-
return hash(f"{self.name,self.participant,self.component,self.tutorial}")
239+
return hash(f"{self.name, self.participant, self.component, self.tutorial}")
240240

241241
def __eq__(self, other) -> bool:
242242
if isinstance(other, Case):

tools/tests/systemtests/Systemtest.py

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

8484
max_name_length = _get_length_of_name(results)
8585

86-
header = f"| {'systemtest':<{max_name_length + 2}} | {'success':^7} | {'building time [s]':^17} | {'solver time [s]':^15} | {'fieldcompare time [s]':^21} |"
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} |"
8794
separator_plaintext = "+-" + "-" * (max_name_length + 2) + \
8895
"-+---------+-------------------+-----------------+-----------------------+"
8996
separator_markdown = "| --- | --- | --- | --- | --- |"
@@ -98,7 +105,15 @@ def _get_length_of_name(results: List[SystemtestResult]) -> int:
98105
print(separator_markdown, file=f)
99106

100107
for result in results:
101-
row = f"| {str(result.systemtest):<{max_name_length + 2}} | {result.success:^7} | {result.build_time:^17.1f} | {result.solver_time:^15.1f} | {result.fieldcompare_time:^21.1f} |"
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} |"
102117
print(row)
103118
print(separator_plaintext)
104119
if "GITHUB_STEP_SUMMARY" in os.environ:
@@ -138,7 +153,7 @@ def __eq__(self, other) -> bool:
138153
return False
139154

140155
def __hash__(self) -> int:
141-
return hash(f"{self.tutorial,self.arguments,self.case_combination}")
156+
return hash(f"{self.tutorial, self.arguments, self.case_combination}")
142157

143158
def __post_init__(self):
144159
self.__init_args_to_use()

0 commit comments

Comments
 (0)