[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
@@ -58,9 +58,7 @@ void ViewProviderFemPostPipeline::updateData(const App::Property* prop)
|
||||
FemGui::ViewProviderFemPostObject::updateData(prop);
|
||||
|
||||
Fem::FemPostPipeline* pipeline = getObject<Fem::FemPostPipeline>();
|
||||
if ((prop == &pipeline->Data) ||
|
||||
(prop == &pipeline->Group)||
|
||||
(prop == &pipeline->Frame)) {
|
||||
if ((prop == &pipeline->Data) || (prop == &pipeline->Group) || (prop == &pipeline->Frame)) {
|
||||
|
||||
updateFunctionSize();
|
||||
updateColorBars();
|
||||
|
||||
@@ -68,7 +68,7 @@ def setupPipeline(doc, analysis, results_name, result_data):
|
||||
|
||||
# create a results pipeline (dependend on user settings)
|
||||
pipeline_name = "Pipeline_" + results_name
|
||||
pipelines = analysis.getObjectsOfType("Fem::FemPostPipeline")
|
||||
pipelines = analysis.getObjectsOfType("Fem::FemPostPipeline")
|
||||
fem_prefs = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Fem/General")
|
||||
keep_results_on_rerun = fem_prefs.GetBool("KeepResultsOnReRun", False)
|
||||
|
||||
|
||||
@@ -165,7 +165,8 @@ class FemToolsCcx(QtCore.QRunnable, QtCore.QObject):
|
||||
# we remove the result objects only, not the postprocessing ones.
|
||||
# Reason: "Not keep results" means for the user override the data. For postprocessing
|
||||
# this means keeping all filters, just change the data.
|
||||
from femresult.resulttools import purge_result_objects as purge
|
||||
from femresult.resulttools import purge_result_objects as purge
|
||||
|
||||
purge(self.analysis)
|
||||
|
||||
def reset_all(self):
|
||||
|
||||
Reference in New Issue
Block a user