From 8357be8015350f287e5f1e008e27449978d9f8b7 Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Tue, 9 May 2023 10:53:45 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20refactor(PreProcessWorker.py):?= =?UTF-8?q?=20rename=20objpath=20to=20obj=5Fpath=20and=20discretisation=5F?= =?UTF-8?q?value=20to=20delta=5Fz=20for=20better=20readability=20This=20co?= =?UTF-8?q?mmit=20renames=20the=20objpath=20parameter=20to=20obj=5Fpath=20?= =?UTF-8?q?and=20discretisation=5Fvalue=20to=20delta=5Fz=20for=20better=20?= =?UTF-8?q?readability=20and=20consistency=20with=20the=20naming=20convent?= =?UTF-8?q?ions.=20The=20function=20run()=20has=20been=20updated=20to=20in?= =?UTF-8?q?clude=20a=20more=20detailed=20description=20of=20what=20it=20do?= =?UTF-8?q?es.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/gui/pyqt/main_window/Workers/PreProcessWorker.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/utils/gui/pyqt/main_window/Workers/PreProcessWorker.py b/utils/gui/pyqt/main_window/Workers/PreProcessWorker.py index 546bf40..389d7e9 100644 --- a/utils/gui/pyqt/main_window/Workers/PreProcessWorker.py +++ b/utils/gui/pyqt/main_window/Workers/PreProcessWorker.py @@ -16,8 +16,10 @@ class PreProcessWorker(Worker): :param name: The name of the worker :param objpath: The path to the 3d object + :param discretisation_value: The delta z :ivar objpath: The path to the 3d object + :ivar deltaZ: The delta z :ivar progress_value: The current progress value :ivar progress_weight: The weight of the progress bar :ivar processed_obj: The signal to emit the processed object @@ -35,8 +37,9 @@ class PreProcessWorker(Worker): def run(self): """ - Pre process the object, read the file, verticalise it and normalise it - Emit the processed object in the processed_obj signal + This function is called when the thread is started. + It reads the file specified in the objpath, parses it, verticalises it and normalises it. + It then emits the processed object. """ # Read the file self.set_status("Loading file...")