Skip to content

Commit 7eea883

Browse files
Copilotsankalps0549
andcommitted
Clean up extra blank lines from refactoring
Co-authored-by: sankalps0549 <[email protected]>
1 parent 7d1084e commit 7eea883

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+0
-252
lines changed

src/moldflow/boundary_conditions.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from .vector import Vector
1616
from .prop import Property
1717

18-
1918
class BoundaryConditions:
2019
"""
2120
Wrapper for BoundaryConditions class of Moldflow Synergy.
@@ -164,7 +163,6 @@ def create_spring_constraints(
164163

165164
analysis = get_enum_value(analysis, AnalysisType)
166165

167-
168166
return self.boundary_conditions.CreateSpringConstraints(
169167
check_and_coerce_optional(nodes, EntList),
170168
analysis,
@@ -194,7 +192,6 @@ def create_core_shift_spring_constraints(
194192
"""
195193
process_log(__name__, LogMessage.FUNCTION_CALL, locals(), name="create_spring_constraints")
196194

197-
198195
check_type(retract_time, (float, int))
199196
return self.boundary_conditions.CreateSpringConstraints2(
200197
check_and_coerce_optional(nodes, EntList),
@@ -229,9 +226,6 @@ def create_general_constraints(
229226
"""
230227
process_log(__name__, LogMessage.FUNCTION_CALL, locals(), name="create_general_constraints")
231228

232-
233-
234-
235229
analysis = get_enum_value(analysis, AnalysisType)
236230
trans_types = self._check_vector(trans_types)
237231
rotation_types = self._check_vector(rotation_types)
@@ -276,9 +270,6 @@ def create_core_shift_general_constraints(
276270
name="create_core_shift_general_constraints",
277271
)
278272

279-
280-
281-
282273
check_type(retract_time, (int, float))
283274
trans_types = self._check_vector(trans_types)
284275
rotation_types = self._check_vector(rotation_types)
@@ -307,7 +298,6 @@ def create_nodal_loads(
307298
"""
308299
process_log(__name__, LogMessage.FUNCTION_CALL, locals(), name="create_nodal_loads")
309300

310-
311301
return self.boundary_conditions.CreateNodalLoads(
312302
check_and_coerce_optional(nodes, EntList),
313303
check_and_coerce_optional(force, Vector),
@@ -420,7 +410,6 @@ def create_critical_dimension(
420410
"""
421411
process_log(__name__, LogMessage.FUNCTION_CALL, locals(), name="create_critical_dimension")
422412

423-
424413
check_type(upper, (float, int))
425414
check_type(lower, (float, int))
426415
return self.boundary_conditions.CreateCriticalDimension(
@@ -448,7 +437,6 @@ def create_doe_critical_dimension(
448437
__name__, LogMessage.FUNCTION_CALL, locals(), name="create_doe_critical_dimension"
449438
)
450439

451-
452440
check_type(name, str)
453441
return self.boundary_conditions.CreateDoeCriticalDimension(
454442
check_and_coerce_optional(node1, EntList),
@@ -507,7 +495,6 @@ def create_ndbc_at_xyz(
507495
"""
508496
process_log(__name__, LogMessage.FUNCTION_CALL, locals(), name="create_ndbc_at_xyz")
509497

510-
511498
check_type(prop_type, int)
512499

513500
prop_disp = check_and_coerce_optional(prop, Property)
@@ -557,7 +544,6 @@ def move_ndbc_to_xyz(
557544
"""
558545
process_log(__name__, LogMessage.FUNCTION_CALL, locals(), name="move_ndbc_to_xyz")
559546

560-
561547
return self.boundary_conditions.MoveNDBCToXYZ(
562548
check_and_coerce_optional(ndbc, EntList),
563549
check_and_coerce_optional(coord, Vector),
@@ -628,9 +614,6 @@ def create_one_sided_constraints(
628614
__name__, LogMessage.FUNCTION_CALL, locals(), name="create_one_sided_constraints"
629615
)
630616

631-
632-
633-
634617
if retract_time != 0:
635618
check_type(retract_time, (float, int))
636619
positive_trans_types = self._check_vector(positive_trans_types)

src/moldflow/boundary_list.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from .logger import process_log
1212
from .common import LogMessage
1313

14-
1514
class BoundaryList:
1615
"""
1716
Wrapper for BoundaryList class of Moldflow Synergy.

src/moldflow/cad_manager.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from .helper import check_type, check_optional_type, check_and_coerce_optional, coerce_optional_dispatch
1313
from .com_proxy import safe_com
1414

15-
1615
class CADManager:
1716
"""
1817
Wrapper for CADManager class of Moldflow Synergy.
@@ -61,7 +60,6 @@ def modify_cad_surfaces_by_normal(
6160
__name__, LogMessage.FUNCTION_CALL, locals(), name="modify_cad_surfaces_by_normal"
6261
)
6362

64-
6563
check_type(distance, (float, int))
6664
return self.cad_manager.ModifyCADSurfacesByNormal(
6765
check_and_coerce_optional(faces, EntList),

src/moldflow/circuit_generator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from .helper import check_type
1111
from .com_proxy import safe_com
1212

13-
1413
class CircuitGenerator:
1514
"""
1615
Wrapper for CircuitGenerator class of Moldflow Synergy.

src/moldflow/com_proxy.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@
1313
from .common import LogMessage
1414
from .errors import raise_attribute_error
1515

16-
1716
# ------------------------------------------------------------------
1817
# Helper: Verify COM attribute existence
1918
# ------------------------------------------------------------------
2019

21-
2220
def _verify_com_attribute(obj, attribute: str):
2321
"""
2422
Raise *AttributeError* if *attribute* is not present on *obj*.
@@ -35,7 +33,6 @@ def _verify_com_attribute(obj, attribute: str):
3533
raise_attribute_error(attribute)
3634
process_log(__name__, LogMessage.VALID_INPUT)
3735

38-
3936
class SafeCOMProxy:
4037
"""Lightweight proxy around a COM object that validates attribute access.
4138
@@ -115,7 +112,6 @@ def __hash__(self):
115112
"""
116113
return hash(self._com)
117114

118-
119115
def safe_com(obj):
120116
"""
121117
Return a *SafeCOMProxy* wrapping *obj* if it isn’t already wrapped.
@@ -125,12 +121,10 @@ def safe_com(obj):
125121
"""
126122
return obj if isinstance(obj, SafeCOMProxy) else SafeCOMProxy(obj)
127123

128-
129124
# ------------------------------------------------------------------
130125
# Helper to expose _oleobj_ on wrapper objects
131126
# ------------------------------------------------------------------
132127

133-
134128
def expose_oleobj(container, attr_name="_com"):
135129
"""Attach `_oleobj_` to *container* by copying it from the wrapped COM object.
136130
@@ -159,7 +153,6 @@ def expose_oleobj(container, attr_name="_com"):
159153
# not be passable to COM until the attribute appears.
160154
pass
161155

162-
163156
def flag_com_method(com_object, method_name: str):
164157
"""
165158
Ensure *method_name* on *com_object* is dispatched as a method.

0 commit comments

Comments
 (0)