Skip to content

Commit f486b9e

Browse files
authored
Formatting - remove whitespace on blank lines (#32)
* Remove whitespace on blank lines * Update flake8 config
1 parent 90d5486 commit f486b9e

26 files changed

+372
-391
lines changed

.flake8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[flake8]
2-
# To be added once code is refactored: E501, W293, F401
3-
select = W191, W291, W391, E115, E117, E122, E124, E125, E225, E231, E301, E303, F403
2+
# To be added once code is refactored: E501, F401
3+
select = W191, W291, W293, W391, E115, E117, E122, E124, E125, E225, E231, E301, E303, F403
44
count = True
55
max-complexity = 10
66
max-line-length = 100

ansys/dpf/post/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,3 @@
1717
"""
1818

1919
#dpf.core.start_local_server()
20-
21-

ansys/dpf/post/common.py

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# class ElShapes(Enum):
77
# """Class with Enum inheritance. Must be used to
88
# describe the element shape when API allows it.
9-
9+
1010
# Example
1111
# -----
1212
# from ansys.dpf import post
@@ -19,12 +19,12 @@
1919
# shell_top = 4
2020
# shellmid = 5
2121
# shell_bottom = 6
22-
23-
22+
23+
2424
class Grouping():
2525
"""Class with Enum inheritance. Must be used to
2626
describe a grouping command when the API allows it.
27-
27+
2828
Examples
2929
--------
3030
>>> from ansys.dpf import post
@@ -34,12 +34,12 @@ class Grouping():
3434
by_el_shape = "elshape"
3535
by_material = "mat"
3636
by_body = "body"
37-
38-
37+
38+
3939
class _AvailableKeywords():
4040
"""Contains all the keywords that can be used inside of
4141
a method from a post.solution(file_path) object.
42-
42+
4343
In order to view the complete list of available keywords, use:
4444
post.print_available_keywords()
4545
"""
@@ -54,7 +54,7 @@ class _AvailableKeywords():
5454
_subresult = "subresult"
5555
mapdl_grouping = "mapdl_grouping"
5656
time_scoping = "time_scoping"
57-
57+
5858
def __str__(self):
5959
txt = ""
6060
for attr in dir(_AvailableKeywords):
@@ -64,7 +64,7 @@ def __str__(self):
6464
txt += self._description_mapping(attr)
6565
txt += "\n"
6666
return txt
67-
67+
6868
def _description_mapping(self, attr_name):
6969
if (attr_name == self.location):
7070
return "str. Use post.locations.(...) as helper."
@@ -84,20 +84,17 @@ def _description_mapping(self, attr_name):
8484
return "int. Write 186 to get mapdl_elements solid_186."
8585
if (attr_name == self.grouping):
8686
return "str. Use post.grouping.(...) as helper."
87-
88-
87+
88+
8989
class _AnalysisType():
9090
"""Contains Python analysis type names. For developers usage."""
9191
static = "static"
9292
modal = "modal"
9393
harmonic = "harmonic"
9494
transient = "transient"
95-
96-
95+
96+
9797
class _PhysicsType():
9898
"""Contains Python physics type names. For developers usage."""
9999
mecanic = "mecanic"
100100
thermal = "thermal"
101-
102-
103-

ansys/dpf/post/displacement.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ class Displacement(Vector):
99
def __init__(self, **kwargs):
1010
super().__init__(**kwargs)
1111
self._operator_name = "U"
12-
12+
1313
if self.definition.location != locations.nodal:
1414
raise NodalLocationError
15-
15+
1616
def __str__(self):
1717
txt = super().__str__()
1818
txt += "\n"
1919
txt += "This is a displacement object."
2020
return txt
21-
22-
21+
22+
2323
class ComplexDisplacement(ComplexVector):
2424
"""Defines the complex displacement object, that is a vector object."""
2525
def __init__(self, **kwargs):
2626
super().__init__(**kwargs)
2727
self._operator_name = "U"
28-
28+
2929
if self.definition.location != locations.nodal:
3030
raise NodalLocationError

0 commit comments

Comments
 (0)