Skip to content
Snippets Groups Projects

Declare data dependencies in ThOr functors

Merged Alex Pearce requested to merge apearce-moore-51 into master
All threads resolved!

By implementing the data_dependencies API added in LHCb!2930 (merged), PyConf can now retrieve data dependencies of functors. The various BoundFunctor specialisations now propagate the dependencies of their inputs to themselves. Complex functors, like MVA and COMB, are responsible for propagating data dependencies from their arguments (which is rather ugly, but I think it's good enough for now).

To support existing tests and allow for gradual migration, strings are allowed in place of DataHandle arguments, but a warning is logged. Users of functors should migrate to using DataHandle.

See Moore#51 (closed) for further motivation.

Requires LHCb!2930 (merged).

Edited by Alex Pearce

Merge request reports

Pipeline #2327071 passed

Pipeline passed for 2594829a on apearce-moore-51

Approved by

Merged by Rosen MatevRosen Matev 4 years ago (Feb 18, 2021 2:14pm UTC)

Merge details

Pipeline #2328317 passed

Pipeline passed for 466c09ac on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Alex Pearce added 2 commits

    added 2 commits

    • 6b8a39f0 - Use pytest rather than nosetests.
    • f795cdfc - Functors now declare DataHandle dependencies.

    Compare with previous version

  • mentioned in commit Moore@b668b47d

  • Alex Pearce mentioned in merge request Moore!738 (merged)

    mentioned in merge request Moore!738 (merged)

  • Alex Pearce changed the description

    changed the description

  • mentioned in commit Moore@a0d24f16

  • Edited by Software for LHCb
  • Alex Pearce added 1 commit

    added 1 commit

    • 0c242c42 - Add explicit pickle support to BoundFunctor.

    Compare with previous version

  • Alex Pearce resolved all threads

    resolved all threads

  • @rmatev there is a failure in pipelines documents test of Moore!738 (merged), but the results of the ci-test and LHCb-head-2 #167 are good (see Moore!738 (merged)).

  • assigned to @rmatev and unassigned @frodrigu

  • Rosen Matev
  • Rosen Matev requested review from @rmatev and removed review request for @nnolte

    requested review from @rmatev and removed review request for @nnolte

  • Alex Pearce added 15 commits

    added 15 commits

    Compare with previous version

  • Alex Pearce resolved all threads

    resolved all threads

  • Rosen Matev approved this merge request

    approved this merge request

  • unassigned @rmatev

  • merged

  • Rosen Matev mentioned in commit 466c09ac

    mentioned in commit 466c09ac

  • mentioned in issue #186 (closed)

  • Rosen Matev resolved all threads

    resolved all threads

  • Please register or sign in to reply
    Loading