Skip to content

Commit 9a15cf9

Browse files
committed
correct code style
1 parent c683f9a commit 9a15cf9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/ansys/dyna/core/pre/dynabase.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ def __init__(self):
224224
self.have_bulk_viscosity = False
225225
self.have_control_shell = False
226226

227-
228227
def get_stub():
229228
"""Get the stub of this DynaBase object."""
230229
return DynaBase.stub

src/ansys/dyna/core/pre/dynamech.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@
77

88
from .dynabase import * # noqa : F403
99

10+
1011
class AnalysisType(Enum):
1112
EXPLICIT = 1
1213
IMPLICIT = 2
1314
NONE = 3
1415

16+
1517
class DynaMech(DynaBase):
1618
"""Define an Mechanical analysis."""
1719

18-
def __init__(self,analysis=AnalysisType.EXPLICIT):
20+
def __init__(self, analysis=AnalysisType.EXPLICIT):
1921
DynaBase.__init__(self)
2022
self.casetype = CaseType.STRUCTURE
2123
self.analysis = analysis.value
@@ -244,7 +246,7 @@ def create_hourglass(self, ghid, ihq, qm=0.1, q1=1.5, q2=0.06, qb=1e-9, qw=1e-9)
244246
logging.info("Hourglass 1 Created...")
245247
return ret
246248

247-
def save_file(self,defaultsetting=1):
249+
def save_file(self, defaultsetting=1):
248250
"""Save keyword files.
249251
250252
Returns

0 commit comments

Comments
 (0)