PaIRS-UniNa 0.2.0__cp310-cp310-win_amd64.whl → 0.2.8__cp310-cp310-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- PaIRS_UniNa/Calibration_Tab.py +39 -23
- PaIRS_UniNa/Changes.txt +127 -8
- PaIRS_UniNa/Custom_Top.py +12 -9
- PaIRS_UniNa/Explorer.py +534 -165
- PaIRS_UniNa/FolderLoop.py +562 -0
- PaIRS_UniNa/Input_Tab.py +261 -100
- PaIRS_UniNa/Input_Tab_CalVi.py +24 -25
- PaIRS_UniNa/Input_Tab_tools.py +967 -405
- PaIRS_UniNa/Output_Tab.py +324 -130
- PaIRS_UniNa/PaIRS_PIV.py +58 -1
- PaIRS_UniNa/PaIRS_pypacks.py +1415 -1039
- PaIRS_UniNa/Process_Tab.py +15 -19
- PaIRS_UniNa/Process_Tab_Disp.py +12 -5
- PaIRS_UniNa/Saving_tools.py +27 -13
- PaIRS_UniNa/TabTools.py +176 -59
- PaIRS_UniNa/Vis_Tab.py +664 -256
- PaIRS_UniNa/Vis_Tab_CalVi.py +114 -45
- PaIRS_UniNa/Whatsnew.py +58 -9
- PaIRS_UniNa/_PaIRS_PIV.pyd +0 -0
- PaIRS_UniNa/__init__.py +4 -3
- PaIRS_UniNa/addwidgets_ps.py +150 -63
- PaIRS_UniNa/calib.py +6 -3
- PaIRS_UniNa/calibView.py +19 -6
- PaIRS_UniNa/gPaIRS.py +1397 -543
- PaIRS_UniNa/icons/align_all.png +0 -0
- PaIRS_UniNa/icons/announcement.png +0 -0
- PaIRS_UniNa/icons/bugfix.png +0 -0
- PaIRS_UniNa/icons/change_folder.png +0 -0
- PaIRS_UniNa/icons/change_folder_off.png +0 -0
- PaIRS_UniNa/icons/close_all.png +0 -0
- PaIRS_UniNa/icons/copy_process_off.png +0 -0
- PaIRS_UniNa/icons/flaticon_PaIRS_beta.png +0 -0
- PaIRS_UniNa/icons/flaticon_PaIRS_download_warning.png +0 -0
- PaIRS_UniNa/icons/folder_loop_cleanup.png +0 -0
- PaIRS_UniNa/icons/folder_loop_cleanup_off.png +0 -0
- PaIRS_UniNa/icons/linked.png +0 -0
- PaIRS_UniNa/icons/logo_opaco.png +0 -0
- PaIRS_UniNa/icons/open_image.png +0 -0
- PaIRS_UniNa/icons/open_new_window.png +0 -0
- PaIRS_UniNa/icons/open_result.png +0 -0
- PaIRS_UniNa/icons/process_loop.png +0 -0
- PaIRS_UniNa/icons/pylog.png +0 -0
- PaIRS_UniNa/icons/python_warning.png +0 -0
- PaIRS_UniNa/icons/queue.png +0 -0
- PaIRS_UniNa/icons/restore_undo.png +0 -0
- PaIRS_UniNa/icons/save_and_stop.png +0 -0
- PaIRS_UniNa/icons/scale_all.png +0 -0
- PaIRS_UniNa/icons/scale_down.png +0 -0
- PaIRS_UniNa/icons/scale_up.png +0 -0
- PaIRS_UniNa/icons/scan_path_loop.png +0 -0
- PaIRS_UniNa/icons/scan_path_loop_off.png +0 -0
- PaIRS_UniNa/icons/show_all.png +0 -0
- PaIRS_UniNa/icons/star.png +0 -0
- PaIRS_UniNa/icons/step_inheritance.png +0 -0
- PaIRS_UniNa/icons/subMIN_on.png +0 -0
- PaIRS_UniNa/icons/unedited.png +0 -0
- PaIRS_UniNa/icons/uninitialized.png +0 -0
- PaIRS_UniNa/icons/window.png +0 -0
- PaIRS_UniNa/listLib.py +3 -2
- PaIRS_UniNa/parForMulti.py +7 -5
- PaIRS_UniNa/parForWorkers.py +174 -140
- PaIRS_UniNa/pivParFor.py +9 -11
- PaIRS_UniNa/preProcParFor.py +4 -4
- PaIRS_UniNa/procTools.py +120 -44
- PaIRS_UniNa/rqrdpckgs.txt +9 -0
- PaIRS_UniNa/stereoPivParFor.py +16 -22
- PaIRS_UniNa/tabSplitter.py +17 -7
- PaIRS_UniNa/ui_Input_Tab.py +56 -57
- PaIRS_UniNa/ui_Input_Tab_CalVi.py +71 -64
- PaIRS_UniNa/ui_Log_Tab.py +8 -6
- PaIRS_UniNa/ui_Output_Tab.py +180 -4
- PaIRS_UniNa/ui_Process_Tab.py +19 -19
- PaIRS_UniNa/ui_Process_Tab_Disp.py +181 -10
- PaIRS_UniNa/ui_Vis_Tab.py +332 -196
- PaIRS_UniNa/ui_Whatsnew.py +13 -13
- PaIRS_UniNa/ui_gPairs.py +140 -71
- PaIRS_UniNa/ui_infoPaIRS.py +156 -31
- PaIRS_UniNa/whatsnew.txt +6 -4
- {PaIRS_UniNa-0.2.0.dist-info → pairs_unina-0.2.8.dist-info}/METADATA +62 -26
- {PaIRS_UniNa-0.2.0.dist-info → pairs_unina-0.2.8.dist-info}/RECORD +82 -54
- {PaIRS_UniNa-0.2.0.dist-info → pairs_unina-0.2.8.dist-info}/WHEEL +1 -1
- PaIRS_UniNa/icons/order.png +0 -0
- PaIRS_UniNa/icons/order_reverse.png +0 -0
- PaIRS_UniNa/icons/run_piv.png +0 -0
- PaIRS_UniNa/stereo.py +0 -685
- PaIRS_UniNa/ui_infoCalVi.py +0 -428
- PaIRS_UniNa-0.2.0.dist-info/LICENSE +0 -19
- {PaIRS_UniNa-0.2.0.dist-info → pairs_unina-0.2.8.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
PaIRS_UniNa/icons/subMIN_on.png
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
PaIRS_UniNa/listLib.py
CHANGED
|
@@ -109,11 +109,12 @@ def pop_at_depth(lst, depth, indexes):
|
|
|
109
109
|
|
|
110
110
|
def insert_at_depth(lst, depth, indexes, values):
|
|
111
111
|
"""Recursively insert a value at the specified depth using given indexes."""
|
|
112
|
-
global error_printed
|
|
112
|
+
global error_printed, gllst
|
|
113
113
|
error_printed = False
|
|
114
|
+
gllst=lst
|
|
114
115
|
|
|
115
116
|
def recursive_insert(lst, depth, indexes, values, current_depth=0):
|
|
116
|
-
global error_printed
|
|
117
|
+
global error_printed, gllst
|
|
117
118
|
if depth < 0:
|
|
118
119
|
if not error_printed:
|
|
119
120
|
pri.Coding.red(f"Error [insert_at_depth]: Depth cannot be negative.")
|
PaIRS_UniNa/parForMulti.py
CHANGED
|
@@ -167,15 +167,16 @@ class ParForMul():
|
|
|
167
167
|
id is the id of the task should be a numeber between 1 and numUsedCores'''
|
|
168
168
|
return ('finalTask',2)
|
|
169
169
|
|
|
170
|
-
def launchTask(self,task,initTask,finalTask, *args,**kwargs):
|
|
170
|
+
def launchTask(self,procId,task,initTask,finalTask, *args,**kwargs):
|
|
171
171
|
''' the main parallel function first calls initTask (eventExit is an event that enables the safe exit)
|
|
172
172
|
then for all the element in the queue q calls task with the variable returned by initTask
|
|
173
173
|
finally calls finalTask puts in the queue qOut the final result '''
|
|
174
174
|
# aggiunto try così almeno ci rendiamo conto se c'è un errore
|
|
175
|
+
'''
|
|
175
176
|
try:
|
|
176
177
|
procId=mp.current_process()._identity[0]
|
|
177
178
|
except:
|
|
178
|
-
procId=0
|
|
179
|
+
procId=0 # '''
|
|
179
180
|
#pid=mp.current_process().pid
|
|
180
181
|
flagHasWorked=False#if true the task has processed at least one element
|
|
181
182
|
#if procId==2: prTimeLock(f"launchTask |||||||||||| Inizio procId={procId} flagHasWorked={flagHasWorked} ")
|
|
@@ -253,7 +254,7 @@ class ParForMul():
|
|
|
253
254
|
com.q.put((-1,-1))
|
|
254
255
|
|
|
255
256
|
for i in range(self.numUsedCores):
|
|
256
|
-
_=parPool.apply_async(self.launchTask,(task, initTask,finalTask)+args,kwargs,callback=callWrapUp, error_callback=self.errorHandler)
|
|
257
|
+
_=parPool.apply_async(self.launchTask,(i,task, initTask,finalTask)+args,kwargs,callback=callWrapUp, error_callback=self.errorHandler)
|
|
257
258
|
#_=parPool.apply_async(self.launchTask,(task, initTask,finalTask)+args,kwargs, error_callback=self.errorHandler)
|
|
258
259
|
#prTime(0,'Dopo apply async in parForExtPool ++++++++++++++++++++++++++++++++++')
|
|
259
260
|
nThreadEnd=0
|
|
@@ -285,7 +286,7 @@ class ParForMul():
|
|
|
285
286
|
|
|
286
287
|
return self.p,flagProcessed,strOutput,self.flagError
|
|
287
288
|
|
|
288
|
-
def simpleFor(self,task,names,*args,initTask=None,finalTask=None,wrapUp=None,callBack=None,**kwargs):
|
|
289
|
+
def simpleFor(self,parPool,task,names,*args,initTask=None,finalTask=None,wrapUp=None,callBack=None,**kwargs):
|
|
289
290
|
''' parallel for main function
|
|
290
291
|
task is the main function that is called for each value in names.
|
|
291
292
|
optionally initTask and finalTask are called only one time per worker
|
|
@@ -314,7 +315,8 @@ class ParForMul():
|
|
|
314
315
|
for _ in range(1):
|
|
315
316
|
com.q.put((-1,-1))
|
|
316
317
|
#with mp.Pool(self.numUsedCores) as pp:
|
|
317
|
-
|
|
318
|
+
procId=0
|
|
319
|
+
var=self.launchTask(procId,task, initTask,finalTask,*args,**kwargs)
|
|
318
320
|
callWrapUp(var)
|
|
319
321
|
nThreadEnd=0
|
|
320
322
|
while True:
|