Ticket #8588 (closed: fixed)
Python Algorithm Decorator
Reported by: | Owen Arnold | Owned by: | Owen Arnold |
---|---|---|---|
Priority: | major | Milestone: | Release 3.1 |
Component: | Tools | Keywords: | |
Cc: | Blocked By: | #8371 | |
Blocking: | Tester: | Peter Parker |
Description
Allow the construction of easy to read and concise python testing around complex workflow algorithms. Uses the builder pattern in which construction is deferred to a building/decorating type, which exposes all constructor arguments via setters. A neat feature of this is that we can automatically build the setters on the fly using introspection into the algorithm. See ReflectometryReductionOneTest.py for example usage.
This has already been implemented as part of #8371. But it would be generally useful, and I am therefore going to move it to a separate module.
Change History
comment:2 Changed 7 years ago by Owen Arnold
- Status changed from new to inprogress
refs #8588. move algorithm_decorator into own module.
Changeset: 56bf758b95c99b66062370349ff4f33ebe288638
comment:4 Changed 7 years ago by Owen Arnold
refs #8588. move algorithm_decorator into own module.
Changeset: c1e1a2f9db02d2c984c6c6e8be102259b90ffb5a
comment:5 Changed 7 years ago by Owen Arnold
Tester:
If ReflectometeryReductionOneTest.py in PythonAlgorithms is still running then this has worked.
comment:6 Changed 7 years ago by Owen Arnold
- Status changed from inprogress to verify
- Resolution set to fixed
comment:7 Changed 7 years ago by Peter Parker
- Status changed from verify to verifying
- Tester set to Peter Parker
comment:8 Changed 7 years ago by Peter Parker
- Status changed from verifying to closed
Merge remote-tracking branch 'origin/feature/8588_algorithm_decorator'
Full changeset: 585b0419bfcc6d72b3ce79e21b1a77d67451d29d