🔨 refactor(PreProcessWorker.py): rename objpath to obj_path and discretisation_value to delta_z for better readability
This commit renames the objpath parameter to obj_path and discretisation_value to delta_z for better readability and consistency with the naming conventions. The function run() has been updated to include a more detailed description of what it does.
This commit is contained in:
parent
a12b42381b
commit
8357be8015
@ -16,8 +16,10 @@ class PreProcessWorker(Worker):
|
|||||||
|
|
||||||
:param name: The name of the worker
|
:param name: The name of the worker
|
||||||
:param objpath: The path to the 3d object
|
:param objpath: The path to the 3d object
|
||||||
|
:param discretisation_value: The delta z
|
||||||
|
|
||||||
:ivar objpath: The path to the 3d object
|
:ivar objpath: The path to the 3d object
|
||||||
|
:ivar deltaZ: The delta z
|
||||||
:ivar progress_value: The current progress value
|
:ivar progress_value: The current progress value
|
||||||
:ivar progress_weight: The weight of the progress bar
|
:ivar progress_weight: The weight of the progress bar
|
||||||
:ivar processed_obj: The signal to emit the processed object
|
:ivar processed_obj: The signal to emit the processed object
|
||||||
@ -35,8 +37,9 @@ class PreProcessWorker(Worker):
|
|||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
"""
|
"""
|
||||||
Pre process the object, read the file, verticalise it and normalise it
|
This function is called when the thread is started.
|
||||||
Emit the processed object in the processed_obj signal
|
It reads the file specified in the objpath, parses it, verticalises it and normalises it.
|
||||||
|
It then emits the processed object.
|
||||||
"""
|
"""
|
||||||
# Read the file
|
# Read the file
|
||||||
self.set_status("Loading file...")
|
self.set_status("Loading file...")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user