Skip to content

Commit

Permalink
Fem: return from Python setEdit methods
Browse files Browse the repository at this point in the history
  • Loading branch information
marioalexis84 committed Jan 22, 2025
1 parent 433a51b commit 99745ff
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
class VPConstraintBodyHeatSource(view_base_femconstraint.VPBaseFemConstraint):

def setEdit(self, vobj, mode=0):
view_base_femconstraint.VPBaseFemConstraint.setEdit(
return view_base_femconstraint.VPBaseFemConstraint.setEdit(
self, vobj, mode, task_constraint_bodyheatsource._TaskPanel
)
2 changes: 1 addition & 1 deletion src/Mod/Fem/femviewprovider/view_constraint_centrif.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ class VPConstraintCentrif(view_base_femconstraint.VPBaseFemConstraint):
"""

def setEdit(self, vobj, mode=0):
view_base_femconstraint.VPBaseFemConstraint.setEdit(
return view_base_femconstraint.VPBaseFemConstraint.setEdit(
self, vobj, mode, task_constraint_centrif._TaskPanel
)
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
class VPConstraintCurrentDensity(view_base_femconstraint.VPBaseFemConstraint):

def setEdit(self, vobj, mode=0):
view_base_femconstraint.VPBaseFemConstraint.setEdit(
return view_base_femconstraint.VPBaseFemConstraint.setEdit(
self, vobj, mode, task_constraint_currentdensity._TaskPanel
)
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, vobj):
vobj.ShapeAppearance = mat

def setEdit(self, vobj, mode=0):
view_base_femconstraint.VPBaseFemConstraint.setEdit(
return view_base_femconstraint.VPBaseFemConstraint.setEdit(
self, vobj, mode, task_constraint_electrostaticpotential._TaskPanel
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
class VPConstraintFlowVelocity(view_base_femconstraint.VPBaseFemConstraint):

def setEdit(self, vobj, mode=0):
view_base_femconstraint.VPBaseFemConstraint.setEdit(
return view_base_femconstraint.VPBaseFemConstraint.setEdit(
self, vobj, mode, task_constraint_flowvelocity._TaskPanel
)
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
class VPConstraintInitialFlowVelocity(view_base_femconstraint.VPBaseFemConstraint):

def setEdit(self, vobj, mode=0):
view_base_femconstraint.VPBaseFemConstraint.setEdit(
return view_base_femconstraint.VPBaseFemConstraint.setEdit(
self, vobj, mode, task_constraint_initialflowvelocity._TaskPanel
)
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
class VPConstraintInitialPressure(view_base_femconstraint.VPBaseFemConstraint):

def setEdit(self, vobj, mode=0):
view_base_femconstraint.VPBaseFemConstraint.setEdit(
return view_base_femconstraint.VPBaseFemConstraint.setEdit(
self, vobj, mode, task_constraint_initialpressure._TaskPanel
)
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
class VPConstraintMagnetization(view_base_femconstraint.VPBaseFemConstraint):

def setEdit(self, vobj, mode=0):
view_base_femconstraint.VPBaseFemConstraint.setEdit(
return view_base_femconstraint.VPBaseFemConstraint.setEdit(
self, vobj, mode, task_constraint_magnetization._TaskPanel
)
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, vobj):
vobj.ShapeAppearance = mat

def setEdit(self, vobj, mode=0):
view_base_femconstraint.VPBaseFemConstraint.setEdit(
return view_base_femconstraint.VPBaseFemConstraint.setEdit(
self, vobj, mode, task_constraint_sectionprint._TaskPanel
)

Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/femviewprovider/view_constraint_tie.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, vobj):
vobj.ShapeAppearance = mat

def setEdit(self, vobj, mode=0):
view_base_femconstraint.VPBaseFemConstraint.setEdit(
return view_base_femconstraint.VPBaseFemConstraint.setEdit(
self, vobj, mode, task_constraint_tie._TaskPanel
)

Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/femviewprovider/view_element_fluid1D.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ class VPElementFluid1D(view_base_femelement.VPBaseFemElement):
"""

def setEdit(self, vobj, mode=0):
super().setEdit(vobj, mode, task_element_fluid1D._TaskPanel)
return super().setEdit(vobj, mode, task_element_fluid1D._TaskPanel)
2 changes: 1 addition & 1 deletion src/Mod/Fem/femviewprovider/view_element_geometry1D.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ class VPElementGeometry1D(view_base_femelement.VPBaseFemElement):
"""

def setEdit(self, vobj, mode=0):
super().setEdit(vobj, mode, task_element_geometry1D._TaskPanel)
return super().setEdit(vobj, mode, task_element_geometry1D._TaskPanel)
2 changes: 1 addition & 1 deletion src/Mod/Fem/femviewprovider/view_element_geometry2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ class VPElementGeometry2D(view_base_femelement.VPBaseFemElement):
"""

def setEdit(self, vobj, mode=0):
super().setEdit(vobj, mode, task_element_geometry2D._TaskPanel)
return super().setEdit(vobj, mode, task_element_geometry2D._TaskPanel)
2 changes: 1 addition & 1 deletion src/Mod/Fem/femviewprovider/view_material_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ def getIcon(self):
return ""

def setEdit(self, vobj, mode=0):
super().setEdit(vobj, mode, task_material_common._TaskPanel)
return super().setEdit(vobj, mode, task_material_common._TaskPanel)
2 changes: 1 addition & 1 deletion src/Mod/Fem/femviewprovider/view_material_reinforced.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ class VPMaterialReinforced(view_base_femmaterial.VPBaseFemMaterial):
"""

def setEdit(self, vobj, mode=0):
super().setEdit(vobj, mode, task_material_reinforced._TaskPanel)
return super().setEdit(vobj, mode, task_material_reinforced._TaskPanel)
2 changes: 1 addition & 1 deletion src/Mod/Fem/femviewprovider/view_mesh_boundarylayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ class VPMeshBoundaryLayer(view_base_femmeshelement.VPBaseFemMeshElement):
"""

def setEdit(self, vobj, mode=0):
super().setEdit(vobj, mode, task_mesh_boundarylayer._TaskPanel)
return super().setEdit(vobj, mode, task_mesh_boundarylayer._TaskPanel)
2 changes: 1 addition & 1 deletion src/Mod/Fem/femviewprovider/view_mesh_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ class VPMeshGroup(view_base_femmeshelement.VPBaseFemMeshElement):
"""

def setEdit(self, vobj, mode=0):
super().setEdit(vobj, mode, task_mesh_group._TaskPanel)
return super().setEdit(vobj, mode, task_mesh_group._TaskPanel)
2 changes: 1 addition & 1 deletion src/Mod/Fem/femviewprovider/view_mesh_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ class VPMeshRegion(view_base_femmeshelement.VPBaseFemMeshElement):
"""

def setEdit(self, vobj, mode=0):
super().setEdit(vobj, mode, task_mesh_region._TaskPanel)
return super().setEdit(vobj, mode, task_mesh_region._TaskPanel)
2 changes: 1 addition & 1 deletion src/Mod/Fem/femviewprovider/view_result_mechanical.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class VPResultMechanical(view_base_femconstraint.VPBaseFemConstraint):
"""

def setEdit(self, vobj, mode=0):
view_base_femconstraint.VPBaseFemConstraint.setEdit(
return view_base_femconstraint.VPBaseFemConstraint.setEdit(
self,
vobj,
mode,
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/femviewprovider/view_solver_ccxtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ def getIcon(self):
return ":/icons/FEM_SolverStandard.svg"

def setEdit(self, vobj, mode=0):
view_base_femconstraint.VPBaseFemConstraint.setEdit(
return view_base_femconstraint.VPBaseFemConstraint.setEdit(
self, vobj, mode, task_solver_ccxtools._TaskPanel, hide_mesh=False
)

0 comments on commit 99745ff

Please sign in to comment.