📝 docs(RawDataWorker.py): add docstring to run method

🐛 fix(RawDataWorker.py): fix typo in theta key name in the output dict
 feat(RawDataWorker.py): save the result of the calculation in a file located in the output_path
The run method now has a docstring that explains what it does. The typo in the theta key name in the output dict has been fixed. The result of the calculation is now saved in a file located in the output_path. This improves the functionality of the RawDataWorker class.
This commit is contained in:
Djalim Simaila 2023-05-09 10:53:21 +02:00
parent dce613fd9e
commit a12b42381b

View File

@ -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"] ))