CERN / TIGRE

TIGRE: Tomographic Iterative GPU-based Reconstruction Toolbox
BSD 3-Clause "New" or "Revised" License
573 stars 188 forks source link

Refactor python time estimation until completion #330

Closed tsadakane closed 3 years ago

tsadakane commented 3 years ago

Motivation

1

Despite they have their own names, all POCS algorithms shows like

POCS Algorithm in progress.
Estimated time until completion : 00:02:21

2

Tidy up.

Tests

Run demos d07, d08, d09, d20 without error.

Especially, d09 (n_iter = 4) showed

(dev38) D:\ws\20210907_TIGRE_alg_name\Python>python demos\d09_Algorithms04.py
OSSART algorithm in progress.
Estimated time until completion : 00:00:01
ASD_POCS algorithm in progress.
Estimated time until completion : 00:00:31

     Stop criteria met:
     c = -0.807888
     beta = 0.9996000599960002
     iter = 4

OS_ASD_POCS algorithm in progress.
Estimated time until completion : 00:00:03

     Stop criteria met:
     c = -0.6594117
     beta = 0.9996000599960002
     iter = 4

AWASD_POCS algorithm in progress.
Estimated time until completion : 00:00:31

     Stop criteria met:
     c = -0.24996887
     beta = 0.9996000599960002
     iter = 4
AnderBiguri commented 3 years ago

Thanks @tsadakane ! This is a thing that bothered me for a while, but always seemed like the thing with less priority to fix, considering I can almost not catch up with bugs! I really appreciate this fix!