summaryrefslogtreecommitdiff
path: root/Wrappers/Python
AgeCommit message (Collapse)Author
2020-03-27Cache computed lipschitz constant, seed random number generator to ensure ↵fast_tnvSuren A. Chilingaryan
that different runs give exactly the same result
2020-02-21Operator composition (#493)Edoardo Pasca
* CompositionOperator and some refactoring * Added SumOperator and CompositionOperator added domain_geometry and optional range_geometry as parameter of Operator. These are saved in _domain_geometry and _range_geometry. Updated all operator and tests to take notice of this change. * fighting with Composition * fix direct and adjoint for CompositeOperator * fix composition Operator * remove target OUTPUT to trigger build * added unit tests * add test for ZeroOperator * fixes * add numba * removed hard coded path * removed comments * fix direct/adjoint with out parameter * removed __rmul__ * use calculate_norm inherited from LinearOperator * removed hard coded version tag * removed cached string version * use add_custom_target instead add_custom_command
2020-02-12explicitly point to build directory (#496)Edoardo Pasca
2020-02-06fix limits of docstring (#495)Edoardo Pasca
* fix limits of docstring * add test for IndicatorBox
2020-01-24axpby as concrete method in DataContainer and BlockDataContainer (#489)Edoardo Pasca
* axpby as concrete method in DataContainer and BlockDataContainer * fixed axpby and added unittest * PDHG to use axpby * pass num_threads to axpby * void commit * add seed to random in test * NUM_THREADS can be imported from ccpi.utilities * added test to axpby with num_threads
2020-01-23Allows user to set number of threads used by openMP in C library grad… (#476)Gemma Fardell
* Allows user to set number of threads used by openMP in C library gradient operator. Changed to release build flags * closes #477 * added test function for c lib thread deployment * improved thread scaling for neumann algoritims * removed unnecessary thread sync * reverts omp number of threads at the end of the c function call Co-authored-by: Edoardo Pasca <edo.paskino@gmail.com>
2020-01-16add force recalculation of norm (#487)Edoardo Pasca
* add force recalculation of norm closes #394 better handling and documentation of Operator norm method. * added docstring and test for dot_test
2020-01-16add reduction min and max (#486)Edoardo Pasca
* add reduction min and max closes #441 * add spacing
2020-01-15Function m (#482)Edoardo Pasca
* fix func style * update pnorm not quite right * add test for SumFunction * passed test for SumFunction * passed test for SumFunction * passed test for SumFunction * rename Norm2Sq to LeastSquares * rename Norm2Sq to LeastSquares * delete files and move to Function.py * fix accuracy convex conjugate * comment proximal conjugate, have generic expression * remove some imports * remove imports and comment gradient, proximal conjugate , rmul * remove imports and comment prox conj * fix init * fix out gradient * fix init * SumFunction full test * rename Norm2Sq * rename Norm2Sq * change kwargs in KL, not ready yet * change def of KL cases * change kwargs in KL, not ready yet * LinearOperatorMatrix FISTA cvx is not working * change name in KL * minor fix * BlockDataContainer should give a geometry when shape is the same * change convex conj when we have BDC * remove space * fix out for prox * rename x to b * add SumFunctionScalar test * fix convex conj of constant * fix convex conj of constant * minor fix * fix con conj * add new tests * KL not ready yet * add docs, not ready yet * fix documentation * fix docs * fix doc scaled function * fix doc translate function * fix modules path for documentation * minor doc fix * fix doc prox conj for KL * fix vector geometry in vectordata * fix direct/adjpint LinearOperator * add test LinearOperatorMatrix * fix doc and check methods for functionOperaCom * add new test for FunctionOperCom with LinearOperMatr * get vector geometry in vector data * minor changes and docs * fix docs * check Lips cons * rename Norm2Sq to LeastSquares for docs * fix KL, docs, background term, conve conj * add KL test * fix KL * minor fix doc * add back prox conj work with smoothTV * smooth TV not ready yet * add prox conj back * minor change * no change * fixing docs, not ready yet * uncomment prox_conj for ScaledFunction * fix doc for BlockFunction * add smoothTV not ready yet * no change * fix doc and uncomment prox conj * remove unicode literals * sphnix is a nightmare * fixing ADMM * remove conv conj, prox, prox conj from smooth TV * merge edo's docs * fix docs for L2Norm after edo's PR * fix docs * remove ADMM * add docs for Function module * remove unicode_literals from future imports https://stackoverflow.com/questions/7602171/unicode-error-unicodeescape-codec-cant-decode-bytes-string-with-u * remove ADMM * removed unicode literals from future imports * fix init for functions * remove main * add explcit KL prox conj, does not work with generic prox conj of function * add elif pass for vector geometry * fixes from comments on the PR * minor changes * fix mul in Function and Identity in TranslateFunction * remove from call * remove BlockGeometr from BDC * remove min, max * cleaned Function * add test for constant function * remove smooth mixed L21 Norm * fixed fill method and test of SumFunction * Functions dev (#479) * v19.10 docs (#467) updated docstrings and documentation * add Gemma in the authors * update docs * Installs with make install (#478) * closes #477 * install from build dir Co-authored-by: Vaggelis Papoutsellis <22398586+epapoutsellis@users.noreply.github.com>
2020-01-10Installs with make install (#478)Edoardo Pasca
* closes #477 * install from build dir
2020-01-06v19.10 docs (#467)Edoardo Pasca
updated docstrings and documentation
2019-12-06C lib (#458)Edoardo Pasca
C library implemented with optimised axpy fucntions and gradient operator in c
2019-11-20added default input to CentreOfRotationFinder set_slice. Added check on ↵Gemma Fardell
value input. (#419)
2019-11-19added armijo rule (#390)Edoardo Pasca
* added armijo rule * added info and kwarg for alpha * updated Armijo rule * modified stop criterion to GD * added kmax to limit the while True loop * fix raise comment * change default stopping criterion * updated test * added Rosenbrock function and test Gradient descent on that * removed test code * added missing import
2019-11-13moved plotting utilities from demos (#424)Edoardo Pasca
* moved plotting utilities from demos * added plt.show() * add utilities package * removed print statement * added numpy import
2019-10-30fix MixedL21Norm (#417)Vaggelis Papoutsellis
* fix MixedL21Norm * merged master * re added future imports
2019-10-29Indicator box to use as_array, for SIRF (#418)Edoardo Pasca
2019-10-29Bug fix: Input data change updates mtime (#416)Gemma Fardell
2019-10-29Block geometry (#415)Vaggelis Papoutsellis
`BlockGeometry` passes `max_value` to `ImageGeometry` or `AcquisitionGeometry`
2019-10-29CenterOfRotationFinder() fixes #406 fixes #400 (#414)Gemma Fardell
* closes #406 closes #400 * Processors check modification and run time before running process
2019-10-28defines shape for a subset slice (#410)Edoardo Pasca
* defines shape for a subset slice closes #408 * fix subset for AcquisitionData * add future imports (#411) * override the dimension parameter, set angles to None by default (#412) * defines shape for a subset slice * fix subset for AcquisitionData * added initial unittest for subset * added .gitignore * adds unittest for subset, fix subset for AcquisitionData * reverted change of behaviour of as_array * removed empty line
2019-10-28override the dimension parameter, set angles to None by default (#412)Edoardo Pasca
2019-10-28add future imports (#411)Edoardo Pasca
2019-10-22Pdhg last objective (#407)Edoardo Pasca
* save previous iteration at start of iteration * adds very_verbose to run method * modified test closes #396
2019-10-18update Lipschitz constant (#404)Edoardo Pasca
2019-10-18closes #370 (#395)Edoardo Pasca
closes #370
2019-10-18copy list compatible with python <3.3 (#399)Edoardo Pasca
closes #398
2019-10-15Fix sym grad (#393)Vaggelis Papoutsellis
* fix func style * fix symGrad * recover from master * fix L1 * fix L1 * Update KullbackLeibler.py * correct adjoint FD * fix symgrad * no change in adjoint FD * add comment on FD * added unittest * changed syntax for assert_almost_equal * split test of sym gradient * fixed test
2019-10-14Run to run all iterations (#391)Edoardo Pasca
* run to run all iterations possible * add test without specifying number of iterations to run * removed print closes #383
2019-10-14Finite diff allocate (#389)Edoardo Pasca
* allocate output from geometry * removed non-default location of TestData
2019-10-11Add log exp (#381)Edoardo Pasca
* add test for algorithm * fix conflict * suppress warning * pass kwargs to Algorithm class creator * added unary operation exp and log
2019-10-11Pass kwargs to algorithm (#380)Edoardo Pasca
* add test for algorithm * fix conflict * suppress warning * pass kwargs to Algorithm class creator
2019-10-11fix subset doesn't return ImageGeometry (#376)evelinaametova
closes #235 closes #312 closes #375
2019-10-10remove angle from ImageGeometry (#378)Edoardo Pasca
closes #371
2019-10-09Finite diff for sirf (#367)Edoardo Pasca
* python2 compatibility import future * add staticmethod dot to test LinearOperators * a little more efficient code * skips all tests if module wget is not present * removed sirf import and simplified code
2019-10-07Subset for ndim 1 (#373)Edoardo Pasca
* subset to return VectorData if dim=1 * move Vector to framework this removes circular dependency * repeat test * skip test
2019-09-20use dimension_labels in clone of Acquisition/ImageGeometry (#366)Edoardo Pasca
closes #365
2019-07-05Removed demosGemma Fardell
2019-07-05Norm2Sq and FISTA to give hints of why they fail (#351)Edoardo Pasca
* Norm2Sq and FISTA to give hints of why they fail * added denoising tests from demos * L1Norm store instance of ShrinkageOperator * relax limit for python2 * added source of tests
2019-07-05Fix documentation (#343)Vaggelis Papoutsellis
* fix documentation algs * fix docum functions dir * fix docum operator dir * docstring title * updated math in docstring
2019-07-04Merge gf branch (#350)Edoardo Pasca
* Algorithms updated to initalise all member variables in set_up() * Added missing data files * Removed memopts=False path
2019-07-04Revert "Gf algorithm bug fix (#348)" (#349)Edoardo Pasca
This reverts commit 6876bda04cde114642ebce3d6bd577da40fa34e9.
2019-07-04Gf algorithm bug fix (#348)gfardell
* Algorithms updated to initalise all member variables in set_up() * Added missing data files * Removed memopts=False path
2019-07-02Headers comment (#342)Edoardo Pasca
* added to autoclass doc * added header * file permission * remove x permission * spdhg x mode * removed file * reset permission to 644
2019-07-02Update spdhg.pyEdoardo Pasca
2019-07-02removed wip directoryEdoardo Pasca
2019-07-02added print of reached toleranceEdoardo Pasca
2019-07-01removed commentsEdoardo Pasca
2019-07-01calculation of flag in method, redefinition of default stop criterionEdoardo Pasca
2019-07-01use master implementationEdoardo Pasca