From a12b42381b5b4449cd70b4823f4db618580dc006 Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Tue, 9 May 2023 10:53:21 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs(RawDataWorker.py):=20add=20?= =?UTF-8?q?docstring=20to=20run=20method=20=F0=9F=90=9B=20fix(RawDataWorke?= =?UTF-8?q?r.py):=20fix=20typo=20in=20theta=20key=20name=20in=20the=20outp?= =?UTF-8?q?ut=20dict=20=E2=9C=A8=20feat(RawDataWorker.py):=20save=20the=20?= =?UTF-8?q?result=20of=20the=20calculation=20in=20a=20file=20located=20in?= =?UTF-8?q?=20the=20output=5Fpath=20The=20run=20method=20now=20has=20a=20d?= =?UTF-8?q?ocstring=20that=20explains=20what=20it=20does.=20The=20typo=20i?= =?UTF-8?q?n=20the=20theta=20key=20name=20in=20the=20output=20dict=20has?= =?UTF-8?q?=20been=20fixed.=20The=20result=20of=20the=20calculation=20is?= =?UTF-8?q?=20now=20saved=20in=20a=20file=20located=20in=20the=20output=5F?= =?UTF-8?q?path.=20This=20improves=20the=20functionality=20of=20the=20RawD?= =?UTF-8?q?ataWorker=20class.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/gui/pyqt/main_window/Workers/RawDataWorker.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/utils/gui/pyqt/main_window/Workers/RawDataWorker.py b/utils/gui/pyqt/main_window/Workers/RawDataWorker.py index a749b37..f077051 100644 --- a/utils/gui/pyqt/main_window/Workers/RawDataWorker.py +++ b/utils/gui/pyqt/main_window/Workers/RawDataWorker.py @@ -39,7 +39,16 @@ class RawDataProcessWorker(Worker): def run(self): """ - Run the analyse + This function is called when the thread is started. + It calculates the raw data and emits a dict with the following keys: + - X (en mm) + - Y (en mm) + - Z (en mm) + - theta (en rad) + - rayon (en mm) + - Xi-Xmoy + - Yi-Ymoy + It also saves the result in a file that'll be located in the output_path """ self.set_status("Calculating raw data...") raw_data = get_raw_data(self.obj, 6,self.delta_z,self.update_progress) @@ -55,7 +64,7 @@ class RawDataProcessWorker(Worker): ["X (en mm)", "Y (en mm)", "Z (en mm)", - "teta (en rad)", + "theta (en rad)", "rayon (en mm)", "Xi-Xmoy", "Yi-Ymoy"] ))