Skip to content
Snippets Groups Projects

TextConfig: add block to add blocks from YAML file

All threads resolved!

Inorder to allow for users to add blocks from the YAML file without editting the python code, a new block was added.

Example adding the CommonServices block:

AddConfigBlocks:                                                                                   
  - modulePath: 'AsgAnalysisAlgorithms.AsgAnalysisConfig'
    functionName: 'makeCommonServicesConfig'
    algName: 'CommonServices'
    pos: 'PileupReweighting'

The code calls import functionName from modulePath. The function or class that will be called corresponds to functionName and will be run before the block at pos. The block can be referenced in the yaml file using algName.

Edited by Joseph Earl Lambert

Merge request reports

Pipeline #6834345 passed

Pipeline passed for ff30c192 on jolamber:main-cpalgorithms-addblock-block

Approval is optional

Merged by Tadej NovakTadej Novak 1 year ago (Feb 5, 2024 10:13am UTC)

Merge details

  • Changes merged into main with 7b926b5c (commits were squashed).
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Lucy Lewitt resolved all threads

    resolved all threads

  • Looks good to me. Lucy (L1)

  • added review-approved label and removed review-pending-level-1 label

  • This looks like what we asked for. Approving from the analysis release side.

    Nils [Analysis RC]

  • merged

  • Tadej Novak mentioned in commit 7b926b5c

    mentioned in commit 7b926b5c

  • Please register or sign in to reply
    Loading