From cf7f82c48a631d2e6d30cc868b34cea6f9759cd4 Mon Sep 17 00:00:00 2001 From: Przemo Firszt Date: Sun, 18 Oct 2015 13:02:58 +0100 Subject: [PATCH] FEM: Move known_analysis_type definition to class definition Signed-off-by: Przemo Firszt --- src/Mod/Fem/FemTools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Fem/FemTools.py b/src/Mod/Fem/FemTools.py index 9fce4929609e..45bc2ac6e7eb 100644 --- a/src/Mod/Fem/FemTools.py +++ b/src/Mod/Fem/FemTools.py @@ -29,6 +29,8 @@ class FemTools(QtCore.QRunnable, QtCore.QObject): finished = QtCore.Signal(int) + known_analysis_types = ["static", "frequency"] + ## The constructor # @param analysis - analysis object to be used as the core object. # @param test_mode - True indicates that no real calculations will take place, so ccx bianry is not required. Used by test module. @@ -38,8 +40,6 @@ def __init__(self, analysis=None, test_mode=False): QtCore.QRunnable.__init__(self) QtCore.QObject.__init__(self) - self.known_analysis_types = ["static", "frequency"] - if analysis: ## @var analysis # FEM analysis - the core object. Has to be present.